note 9588 added to mysql_affected_rows
| From: | tony at hammitt dot com | Date: | Tue, 14 Nov 2000 02:11:28 +0000 |
| Subject: | note 9588 added to mysql_affected_rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7646@lists.php.net to get a copy of this message | ||
Note that mysql_affected_rows() does not have the same syntax as mysql_num_rows(), this confused me
for a while. mysql_num_rows() expects that you'll give it the result of mysql_query(), but
mysql_affected_rows() wants the database identifier as returned from mysql_connect(), or just skip
the argument if you only use one database...
http://www.php.net/manual/function.mysql-affected-rows.php