Re: supernoob strikes again

From: Date: Sun, 09 May 2004 14:56:04 +0000
Subject: Re: supernoob strikes again
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-34330@lists.php.net to get a copy of this message
Dan Bowkley wrote:
got it...rather than return false, mysql_result throws an error if the query returns nothing. What a pain.
NOT True. If the query is syntactically valid and nothing matches, mysql returns zero rows which is not an error, at least on the part of the dbms. Use mysql_num_rows() to test for this condition. Doug
Finished product at http://www.dibcomputers.com/new-dibcomputers/index.php.txt if anyone wants to steal it... D


« previous php.db (#34330) next »