Jump to content

whats wrong with this mysql insert


aquanuke

Recommended Posts

mysql_query("INSERT INTO invoices

( client, date, domains, items, each, cost, status) VALUES('$custom', '$date', '$item_number Domain Credits', '1', '$mc_gross', '$mc_gross', 'PAID' ) ")

or die(mysql_error());

 

gives me 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 'each, cost, status) VALUES('admin', '2011-09-01', '10 Domain Credits', '1', '15'' at line 2

 

Using crimson editor the fields im selecting 'date' and 'each' are in red. Are they not allowed? me thinking out loud

 

 

Link to comment
https://forums.phpfreaks.com/topic/246215-whats-wrong-with-this-mysql-insert/
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.