With respect to version 8.1.15 there is a problem when entering addresses without filling out the date-fileds for birthday/anniversary ($aday, $bday). The empty entry conflicts with the required integer value (tinyint).
The problem results from a more strict mode of operation of MySQL defined at the MySQL ini-file (my.ini)
[mysqld] sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
If the STRICT_TRANS_TABLES is removed the problem dissapears and new entries can be added without problem.
The STRICT_TRANS_TABLES is default for MySQL 5.5.28 for Windows (http://dev.mysql.com/downloads/mysql/)
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
Hi, Thanks for the analysis. I will try to remove the bug.
Setup to enable the mode without .ini
SET sql_mode = 'STRICT_TRANS_TABLES';
Hi, could you send me a .zip with all your changes or even better, fork on github.com https://github.com/chatelao/php-addressbook
How did you get the error messages work?
mysql_query("SET SQL_MODE = 'MYSQL40';");
in dbconnect.php
The problem results from a more strict mode of operation of MySQL defined at the MySQL ini-file (my.ini)
[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
If the STRICT_TRANS_TABLES is removed the problem dissapears and new entries can be added without problem.
The STRICT_TRANS_TABLES is default for MySQL 5.5.28 for Windows (http://dev.mysql.com/downloads/mysql/)
Hi, Thanks for the analysis. I will try to remove the bug.
Setup to enable the mode without .ini
SET sql_mode = 'STRICT_TRANS_TABLES';
Hi, could you send me a .zip with all your changes or even better, fork on github.com
https://github.com/chatelao/php-addressbook
How did you get the error messages work?
mysql_query("SET SQL_MODE = 'MYSQL40';");
in dbconnect.php