Odd PHP Error Message
Posted
by
John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2011-02-08T07:23:58Z
Indexed on
2011/02/08
7:25 UTC
Read the original article
Hit count: 124
When I run some php code I've written, I get the following message:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition, price, name, email) VALUES('Fake Title', 'Fake Subhead', 'Fake Author' at line 1
I do not see anything wrong with my syntax, however, which is like:
mysql_query("INSERT INTO table (x1, x2, x3) VALUES('$y1', '$y2', '$y3')");
Any ideas?
© Stack Overflow or respective owner