note 11751 added to mysql_affected_rows

From: Date: Mon, 05 Mar 2001 22:15:04 +0000
Subject: note 11751 added to mysql_affected_rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-11909@lists.php.net to get a copy of this message
OOPS!!!... my above code is wrong! Sorry for the confusion. The reason that mysql_affected_rows() does not return the number of affected rows is because this function is used only to see the # of records affected by an UPDATE query. SELECT does not alter the database so hence no "records affected." http://www.php.net/manual/en/function.mysql-affected-rows.php

« previous php.notes (#11909) next »