note 8981 deleted from mysql_affected_rows by torben

From: Date: Tue, 10 Oct 2000 05:44:04 +0000
Subject: note 8981 deleted from mysql_affected_rows by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-6289@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.

« previous php.notes (#6289) next »