MySQL Forums
Forum List  »  PHP

Using $_POST
Posted by: harri.saarikoski
Date: May 18, 2005 01:30AM

How do I use $_POST in mysql_query?

It seems this doesn't work:
$sql = "select * from wordfeatures where tagger= $_POST['tagger']";
(where 'tagger' is a <select> element name in the HTML form)

It returns:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING'

bw, Harri S
Finland

Options: ReplyQuote


Subject
Written By
Posted
Using $_POST
May 18, 2005 01:30AM
May 18, 2005 05:43AM
May 19, 2005 08:34AM


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.