Jump to content

Error with query


lilman

Recommended Posts

I am dumbfounded by this error I am getting.  It all looks right, so I cannot figure out why it won't execute.  Here is the code, and then the error I am getting.

 

$sql = "INSERT INTO pandoris_hotornot_comments (canidate_id, score, hot, not) VALUES ('$user_picture_id', '$score', '$hot', '$not')";

$run = mysql_query($sql) or die("Error ". mysql_error() ." with query ". $sql);

 

Error:

Error 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 'not) VALUES ('1', '4', 'hot', 'not')' at line 1 with query INSERT INTO pandoris_hotornot_comments (canidate_id, score, hot, not) VALUES ('1', '4', 'hot', 'not')

 

Link to comment
https://forums.phpfreaks.com/topic/50025-error-with-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.