MySQL Forums
Forum List  »  Newbie

Re: POST_data from a form as value in a mysql WHERE clause
Posted by: Frederick Ahmed
Date: July 15, 2005 01:40PM

I have corrected a typo: $_POST('postcode'), etc, should be $_POST['postcode'], etc, ie with a square bracket.

The script echoes the $_POST[] values correctly and makes connection with the mysql server but does not carry out the
'SELECT * FROM tolet2 WHERE postcode = "$postcode"'; query

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.