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 98Apparently $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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

