note 24250 rejected from function.mysql-num-rows by betz

From: Date: Sat, 10 Aug 2002 15:39:11 +0000
Subject: note 24250 rejected from function.mysql-num-rows by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34726@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!

« previous php.notes (#34726) next »