note 21961 deleted from function.mysql-result by dams

From: Date: Sun, 02 Jun 2002 22:15:03 +0000
Subject: note 21961 deleted from function.mysql-result by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-31358@lists.php.net to get a copy of this message
Just a warning, if your result set is empty mysql_result will return an error like this: Warning: Unable to jump to row 0 on MySQL result index... I got around it by simply using an if statement as such: if(mysql_num_rows($resultID)>0){$foo=mysql_result($resultID,0);}

« previous php.notes (#31358) next »