Re: Supplied argument is not a valid MySQL result resource

From: Date: Sun, 28 Apr 2002 22:53:31 +0000
Subject: Re: Supplied argument is not a valid MySQL result resource
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95040@lists.php.net to get a copy of this message
On Sun, 28 Apr 2002, Dan McCullough wrote: > What does that error mean? > > $result = mysql_query('select * from aannh_towns;'); > echo 'info stored'; > while ($query_data = mysql_fetch_array($result)) { > echo "", $query_data['town'], "", > $query_data['town_id'], ""; } > ?> You'd know if you checked mysql_error() after not getting anything in $result. miguel

« previous php.general (#95040) next »