RE: [PHP] Supplied argument is not a valid MySQL result resource

From: Date: Mon, 29 Apr 2002 01:22:10 +0000
Subject: RE: [PHP] Supplied argument is not a valid MySQL result resource
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95034@lists.php.net to get a copy of this message
It means your query failed. www.php.net/mysql_error ---John Holmes... > -----Original Message----- > From: Dan McCullough [mailto:McWC@rocketmail.com] > Sent: Sunday, April 28, 2002 3:15 PM > To: php-general@lists.php.net > Subject: [PHP] Supplied argument is not a valid MySQL result resource > > 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'], ""; } > ?> > > ===== > dan mccullough > -------------------------------------------------------- > "Theres no such thing as a problem unless the servers are on fire!" > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#95034) next »