From: "Andy B" <[EMAIL PROTECTED]> > 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
You must be overwriting $query somewhere before you use it in mysql_fetch_array(). Do a var_dump() on $query just before you try to retrieve rows from it. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php