Menu
Hi, i’ve got a problem when trying to insert int data type into mysql. The type of the data is int but sometimes this value is left blank. When the user does not type a value for the field the mysql query fails with a syntax error.
$sql = “INSERT INTO proy (name,date,number) VALUES (‘pete’,’2006-11-22′,)”;
When the user type a value the query does not fail.
Whats the problem?, i have others sql querys in others tables succeding.
Thanks all