Code:
$query = "INSERT INTO articles VALUES ('','$author','$headline','$article','0','0')";
mysql_query($query);
The first field ("id") is set to auto increment, so when added a new record, the field is left blank.
However, MySQL returs:
Code:
#1366 - Incorrect integer value: '' for column 'id' at row 1
Anyone know why this is? It works fine if I specify an integer for the "id" field, but in theory it should do this automatically, shouldn't it?
TIA, Jon