RE: [PHP] mysql_fetch_row problem

From: Date: Thu, 23 Jan 2003 14:47:23 +0000
Subject: RE: [PHP] mysql_fetch_row problem
Groups: php.general 
Request: Send a blank email to php-general+get-132837@lists.php.net to get a copy of this message
> -----Original Message----- > From: Bryan Brannigan [mailto:bbrannigan@HancockLumber.com] > Sent: Thursday, January 23, 2003 9:03 AM > Subject: [PHP] mysql_fetch_row problem > $db = mysql_connect("localhost", "webapp"); > mysql_select_db("helpdesk",$db); > $result = mysql_query("SELECT contactemail FROM loc WHERE ... Try putting the sql into a var, using that in the mysql_query, and adding: if (!$result) { echo "Sql was: $sql<br>\n"; echo mysql_error(); }

« previous php.general (#132837) next »