RE: [PHP] $result = mysql_query($query);

From: Date: Sat, 14 Sep 2002 19:06:22 +0000
Subject: RE: [PHP] $result = mysql_query($query);
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116396@lists.php.net to get a copy of this message
> I think what your after is mysql_num_rows(). > - ---- > if(mysql_num_rows($result) != 0){ > - ---- > or you could try: > - ---- > if($result){ if($result) won't work, because $result could be true even though no rows were returned. $result is false when there is an error. ---John Holmes...

« previous php.general (#116396) next »