MySQL is most likely in STRICT mode.
Try running SET GLOBAL sql_mode=""
or edit your my.cnf to make sure you aren’t setting STRICT_ALL_TABLES
or the like.
More Related Contents:
- Create PHP timestamp to insert into mysql databse [duplicate]
- Why shouldn’t I use mysql_* functions in PHP?
- PHP – Using PDO with IN clause array
- How to get ID of the last updated row in MySQL?
- Invoking a PHP script from a MySQL trigger
- When should I use MySQLi instead of MySQL?
- How to repair a serialized string which has been corrupted by an incorrect byte count length?
- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result [duplicate]
- PDO mysql: How to know if insert was successful
- php / Mysql best tree structure
- PHP & MySQL Pagination
- How to write a REST API?
- Prevent InnoDB auto increment ON DUPLICATE KEY
- PHP inserting multiple checkbox AND textbox arrays into MySQL Database
- How can I solve incompatible with sql_mode=only_full_group_by in laravel eloquent?
- Updating from MYSQL to MYSQLI [duplicate]
- How to convert these strange characters? (ë, Ã, ì, ù, Ã)
- PDO error: SQLSTATE[HY000]: General error: 2031
- How to display image from database using php [duplicate]
- Simple PHP SQL login troubleshooting
- php warning mysql_fetch_assoc
- Check if row exists in the database before inserting
- MySQL Table does not exist error, but it does exist
- How does “do something OR DIE()” work in PHP?
- adding 1 day to a DATETIME format value
- Query on a many-to-many relationship using Doctrine with Symfony2
- UTF-8 not working in HTML forms
- Using mysql concat() in WHERE clause?
- Connect to a MySQL server over SSH in PHP