SQL Error?
Posted: Fri Jan 22, 2010 8:36 am
Hey, I am having trouble with the following sql query...
I am getting the error...
Thanks
Code: Select all
$query = mysql_query("INSERT INTO `orders` (`order_status`,`productcode` ,`dispatch_date` ,`customer_id`) VALUES ('Ordered', '$item', '$date', '$email'") or trigger_error(mysql_error());Any help appreciated.Notice: 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 '' at line 1 in /home/spadean1/public_html/john/order.php on line 46
Thanks