[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:
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:
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
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:
[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
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())
6 matches
Mail list logo