After a recent project in the local environment, everything is normal php, ftp upload to the virtual space, = 'hints' when performing update operations (My purpose is to set the id is empty) set id:
Incorrect integer value: '' for column 'id' at row 1
Solution:
1, a program end (for the user can not modify mysql configuration, such as web hosting, space, etc.)
The set id = '' into a set id = NULL, if the condition is: "... where the field name is NULL"
Method 2, modify the mysql configuration file (for example, to do the project in the local environment)
Find where mysql my.ini configuration file, find the sql-mode, the
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Read:
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Then you can restart!