List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:August 15 2002 9:41pm
Subject:Re: Supplied argument is not a valid MySQL result resource!!
View as plain text  
In the last episode (Aug 15), Anil Garg said:
> > Thursday, August 15, 2002, 1:12:21 PM, you wrote:
> >
> > > Hi,
> > > in the piece of code given below
> > > -----------
> > > $qid = mysql_query("
> > >  SELECT *
> > >  FROM 1_nodedata
> > >  WHERE id = $edit_id
> > >  ");
> > >  $frm = mysql_fetch_array($qid);
> >
> hi,
> m sorry i dint mention that its just a part of code.
> i am able to delete entries from the database .so i think mysql_connect is
> not the reason.
> please tell if u have some more ideas

You don't check the return value of mysql_query to make sure that it
succeeded.

-- 
	Dan Nelson
	dnelson@stripped
Thread
Supplied argument is not a valid MySQL result resource!!Anil Garg16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!SteveH16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Anil Garg16 Aug
    • Re: Supplied argument is not a valid MySQL result resource!!Dan Nelson16 Aug
    • RE: Supplied argument is not a valid MySQL result resource!!Roger Davis16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Jocelyn Fournier16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Anil Garg16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Jocelyn Fournier16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Anil Garg16 Aug
  • Re: Supplied argument is not a valid MySQL result resource!!Pekka Saarinen16 Aug