Jump to content

mysql error. HELP!


m2babaey

Recommended Posts

Hi.

This code prompts an error. How can I fix it? it's urgent

mysql_query("INSERT INTO details ( date, time, where ,who, price, action ,comments  ) VALUES('$date','$time','$where','$who','$price' ,'$action' ,'$comments' )")
or die(mysql_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 'where ,who, price, action ,comments ) VALUES('07/14/2007','0940

 

Link to comment
https://forums.phpfreaks.com/topic/60900-mysql-error-help/
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.