Jump to content

MySQL query fails


ericwright17

Recommended Posts

when i run the following:

 

mysql_query("INSERT INTO hours (name, project, dates, isp, nhs, other, desc) VALUES ('a', 'a', 'a', 'a', 'a', 'a', 'a') ") or die(mysql_error());

 

why do i get this 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 'desc) VALUES ('a', 'a', 'a', 'a', 'a', 'a', 'a')' at line 1

Link to comment
https://forums.phpfreaks.com/topic/191453-mysql-query-fails/
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.