RE: [PHP] warning:supplied argument to mysql_fetch_array not valid resource type?

2004-04-07 Thread Jay Blanchard
[snip] i have this query set: $EditQuery=select * from $EventsTable where Id='$edit'; $query=mysql_query($EditQuery)||die(mysql_error()); [/snip] You forgot the connection string arguement in mysql_query -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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

2004-04-07 Thread Jason Wong
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:

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

2004-04-07 Thread John Nichel
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

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

2004-04-07 Thread John W. Holmes
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:

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

2004-04-07 Thread Andy B
[snip] i have this query set: $EditQuery=select * from $EventsTable where Id='$edit'; $query=mysql_query($EditQuery)||die(mysql_error()); [/snip] You forgot the connection string arguement in mysql_query even after putting in my standard mysql_connect(.) stuff it still fails now the

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

2004-04-07 Thread Jason Wong
On Wednesday 07 April 2004 23:16, Andy B wrote: anybody know why that is or what the deal is... i had to modify the query set to read: mysql_connect(...)||die(mysql_error())//works $EditQuery=select * from $EventsTable where Id='$edit'; $query=mysql_query($EditQuery);//||die(mysql_error())