MySQL error?

kitty-kitty

New Member
Messages
1
Reaction score
0
Points
0
The 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 'on) VALUES ('08/26/10, 20:04:40', '1', 'here is a reply using the script instead' at line 1

The query:
@mysql_query("INSERT INTO topicreplys (postedon, posterid, message, on) VALUES ('$date', '$uid', '$message', '$pid')") or die("Error: ".mysql_error());

I used the same query with different variables for the posting of the topic, which works perfectly. Why the reply doe snot.. i dunno.. x.o
 

bo17age

New Member
Messages
6
Reaction score
0
Points
0
The error:


The query:


I used the same query with different variables for the posting of the topic, which works perfectly. Why the reply doe snot.. i dunno.. x.o

ON is a Mysql's system function, you have to use `ON` in this case :)

..and double check your date format
 
Last edited:
Top