note 8981 added to mysql_affected_rows
| From: | foo at ender dot com | Date: | Tue, 10 Oct 2000 05:07:05 +0000 |
| Subject: | note 8981 added to mysql_affected_rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6286@lists.php.net to get a copy of this message | ||
This definitely changed, somehow, from php3->php4. I used to do things like:
$result = mysql_result($query);
if (@mysql_affected_rows($result) > 0) {do stuff}
It worked fine. In 4, it started complaining that
$result was not a link identifier index -- I took
out $result and just used mysql_affected_rows(),
and got the expected result.
http://www.php.net/manual/function.mysql-affected-rows.php