MySQL - Decimal cannot be NULL

Oh.. you are trying to insert an empty string '' into bounty3. Replace it with NULL. I have also noticed empty strings for other possible numeric values eg bonty4. You should replace all empty strings with NULL for numeric values.

eg: mysql_query("INSERT INTO empty_number,number VALUES(NULL,1)");

EDIT: HEY HEY get the point, you cannot insert NULL to a numeric value as 'NULL' because this is a string, you should insert as NULL without any quotation marks


use blank, not null, if you want the default value.

Tags:

Mysql

Php