note 45202 deleted from function.mysql-affected-rows by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 29 Aug 2004 15:49:09 +0000 |
| Subject: | note 45202 deleted from function.mysql-affected-rows by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75575@lists.php.net to get a copy of this message | ||
Note Submitter: info at natuerliche-verhuetung dot de
----
Hi
mysql_affected_rows() returned always 1 although nothing was DELETEd from the database. Finally I
found out why: I am working with two open connections and until you explicitly specify, PHP chooses
the latter one to work with:
mysql_affected_rows($GLOBALS['my_connection'])
solved the problem.