note 17389 added to function.mysql-affected-rows

From: Date: Thu, 06 Dec 2001 16:51:13 +0000
Subject: note 17389 added to function.mysql-affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-21716@lists.php.net to get a copy of this message
On Debian GNU/Linux 2.2 (potato) the php4-Package (4.0.3pl1) returns NEGATIVE numbers instead of positive ones. For example the following prints -1 not 1 as expected: $query="UPDATE pop3 SET passwd='$passwd' WHERE account='$login' AND host='$hostname'"; // host & account are primary keys $result=mysql_db_query("pop3",$query,$link); print mysql_affected_rows($link); -- http://www.php.net/manual/en/function.mysql-affected-rows.php http://master.php.net/manage/user-notes.php?action=edit+17389 http://master.php.net/manage/user-notes.php?action=delete+17389 http://master.php.net/manage/user-notes.php?action=reject+17389

« previous php.notes (#21716) next »