Re: warning:supplied argument to mysql_fetch_array not valid resource type?

From: Date: Wed, 07 Apr 2004 15:04:06 +0000
Subject: Re: warning:supplied argument to mysql_fetch_array not valid resource type?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182649@lists.php.net to get a copy of this message
On Wednesday 07 April 2004 22:56, Andy B wrote: > i have this query set: > $EditQuery="select * from $EventsTable where Id='$edit'"; > $query=mysql_query($EditQuery)||die(mysql_error()); > //later in the code i have this: > while($old=mysql_fetch_array($query)){ > //do stuff > } > when i run the page i get: > warning: supplied argument to mysql_fetch_array is not a valid mysql > resource type on line 98 Apparently $query contains something invalid, find out what it is and WHY. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* It's hard to think of you as the end result of millions of years of evolution. */

« previous php.general (#182649) next »