RE: [PHP] mysql_num_rows error

From: Date: Mon, 23 Sep 2002 13:16:58 +0000
Subject: RE: [PHP] mysql_num_rows error
Groups: php.general 
Request: Send a blank email to php-general+get-117268@lists.php.net to get a copy of this message
Hi Nick, > I am new to php and that the folowing error: > Warning: mysql_num_rows(): supplied argument > is not a valid MySQL result resource in > /home/tbonestu/public_html/smallimages.php > > i dont know what i am doing wrong here is the code: > > @ $db = mysql_pconnect(connect info); Along with the other suggestions to check your $query variable, you should change this line to : $db = @mysql_pconnect($whatever); The @ goes in front of the function call, not the variable, if you want to suppress any potential error messages generated by the function. Cheers Jon

« previous php.general (#117268) next »