Page 1 of 1

MySQL Syntax Error

Posted: Fri Feb 18, 2005 4:52 pm
by s.dot
Okay, I have a problem that's bugging me. Small syntax error. Can you spot it?

Code: Select all

$ignoresql = "INSERT INTO ignore (ignored, whoignored) VALUES('$usertoignore', '".$_COOKIEї'username']."')";
mysql_query($ignoresql) or die(mysql_error());
Error I get:

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 'ignore (ignored, whoignored) VALUES('scrotaye', 'scrotaye')' at

Posted: Fri Feb 18, 2005 5:00 pm
by feyd
'ignore' is a keyword.

Posted: Fri Feb 18, 2005 5:02 pm
by markl999