RE: [PHP] PHP - MySQL Query...

From: Date: Thu, 14 Aug 2003 11:43:39 +0000
Subject: RE: [PHP] PHP - MySQL Query...
Groups: php.general 
Request: Send a blank email to php-general+get-159553@lists.php.net to get a copy of this message
[snip] This is not true, the resource link identifier is optional! If unspecified, the last opened link is used. My suggestion is to check the results of mysql_error() for more information on the failed query. [/snip] You are right, of course...my sleepy brain just glanced at the code and fired off a reply. I always test queries with the following block; if(!($result = mysql_query($query, $connection))){ echo "A query error has occured: " . mysql_error() . "\n"; exit(); }

« previous php.general (#159553) next »