MySQL Forums
Forum List  »  PHP

Re: Can anyone tell me why this throws a parse error on the 5th line?
Posted by: Jonathan Stephens
Date: May 17, 2005 12:21AM

And the string values to be inserted must also be quoted:

mysql_query("INSERT INTO news VALUES (NULL, '$headline', '$story', NULL)");

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Written By
Posted
Re: Can anyone tell me why this throws a parse error on the 5th line?
May 17, 2005 12:21AM


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.