note 24250 added to function.mysql-num-rows

From: Date: Sat, 10 Aug 2002 15:23:55 +0000
Subject: note 24250 added to function.mysql-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-34710@lists.php.net to get a copy of this message
I had the problem that when quering an empty Table(wich might occure one in a while) all my if() clauses for assigning variables didn't work. At last I found the resolution, mysql_num_rows suites fine. So if you have an error of this kind: Warning: mysql_affected_rows(): supplied resource is not a valid MySQL-Link resource in /home/.../htdocs/.../test.php on line xx It might be due to an empty Table! -- http://www.php.net/manual/en/function.mysql-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+24250 http://master.php.net/manage/user-notes.php?action=delete+24250 http://master.php.net/manage/user-notes.php?action=reject+24250

« previous php.notes (#34710) next »