note 17281 deleted from function.mysql-error by jimw

From: Date: Tue, 18 Dec 2001 22:45:00 +0000
Subject: note 17281 deleted from function.mysql-error by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23280@lists.php.net to get a copy of this message
<B>PLEASE NOTE</B> Do not use this function to error check the returning of rows froma MySQL result (resource ID). $rowcount = mysql_num_rows($result)or Die (mysql_error()); If there are no rows returned, the integer returned by mysql_num_rows = 0. Therefore this will not produce any MySQL error becaus enothing went wrong. But because there are no rows returned, the script will end there. Just a note to take on board :-)

« previous php.notes (#23280) next »