Simple Question

From: Date: Mon, 23 Oct 2000 16:41:16 +0000
Subject: Simple Question
Groups: php.general 
Request: Send a blank email to php-general+get-21863@lists.php.net to get a copy of this message
Hi, I looked in the manual but can't find anything to help. How do I repress mysql errors from displaying? Ex: $strsql = "SELECT myval FROM table where date = '$strdte'"; $result = mysql_db_query("db",$strsql); How can I see if $result is valid? When I do echo $result, it allways prints the number 2, whether is finds data or not. If not it give me the error that mysql can jumpt to row 0 on the next statement which is: $strmydte = mysql_result($result,"myval"); I need to see if there is a result before I reach the above line so I can prevent the error display and do something else. Thanks, Chris

« previous php.general (#21863) next »