PHP 4.0 Bug #7079: mysql_query() and mysql_affected_rows() always return false
| From: | jan at jan-dittberner dot de | Date: | Sat, 07 Oct 2000 16:12:41 +0000 |
| Subject: | PHP 4.0 Bug #7079: mysql_query() and mysql_affected_rows() always return false | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34444@lists.php.net to get a copy of this message | ||
From: jan@jan-dittberner.de
Operating system: Linux-Mandrake 7.2 cooker
PHP version: 4.0.2
PHP Bug Type: MySQL related
Bug description: mysql_query() and mysql_affected_rows() always return false
I use the current php-4.0.2-4mdk RPM package from Mandrakesoft (maintainer Jean-Michel Dault
<jmdault@mandrake.com>).
If I do an INSERT or UPDATE in an opened database, mysql_query() always return 0 (false) even if the
transaction was successful and the correct values are stored in the db.
The same problem for mysql_affected_rows(), it return 0 even if there are
1 or more rows altered in the database.
Apache is 1.3.12
MySQL is 3.23.23
I use the ZendOptimizer for php 4.0.2
--
Edit Bug report at: http://bugs.php.net/?id=7079&edit=1