Can someone tell me where I'm wrong with my request?
$sql = "INSERT INTO order (order_id,prod) VALUES ('','".$prod."')";
mysql_query($sql) or die ('Error SQL !'.$sql.'<br />'.mysql_error());
$_SESSION['orderid']=mysql_insert_id();
Here is my table configuration:
Columns for order
table:
'order_id'=>int(11) auto_increment
'prod'=> varchar(20) utf8_general_ci
And this is the error message:
Error SQL !INSERT INTO order (order_id,prod) VALUES ('','xxx') 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 'order (order_id,prod) VALUES ('','xxx')' at line 1
Thank you