Let's try this :
$qid = mysql_query("SELECT * FROM 1_nodedata WHERE id='$edit_id'") or
die(mysql_error());
----- Original Message -----
From: "Anil Garg" <anilg@stripped>
To: "Jocelyn Fournier" <joc@stripped>; <mysql@stripped>
Sent: Thursday, August 15, 2002 11:42 PM
Subject: Re: Supplied argument is not a valid MySQL result resource!!
> yes..it echos $edit_id fine.
> i am also feeling strange why its not working!
> regards
> anil
> ----- Original Message -----
> From: "Jocelyn Fournier" <joc@stripped>
> To: "Anil Garg" <anilg@stripped>; <mysql@stripped>
> Sent: Thursday, August 15, 2002 5:40 PM
> Subject: Re: Supplied argument is not a valid MySQL result resource!!
>
>
> > Hi,
> >
> > try :
> >
> > > $qid = mysql_query("
> > > SELECT *
> > > FROM 1_nodedata
> > > WHERE id = '$edit_id'
> > > ");
> > > $frm = mysql_fetch_array($qid);
> >
> > (what does echo "edit_id : $edit_id"; display ?)
> >
> > Regards,
> > Jocelyn
> > ----- Original Message -----
> > From: "Anil Garg" <anilg@stripped>
> > To: <mysql@stripped>
> > Sent: Thursday, August 15, 2002 11:12 PM
> > Subject: Supplied argument is not a valid MySQL result resource!!
> >
> >
> > > Hi,
> > > in the piece of code given below
> > > -----------
> > > $qid = mysql_query("
> > > SELECT *
> > > FROM 1_nodedata
> > > WHERE id = $edit_id
> > > ");
> > > $frm = mysql_fetch_array($qid);
> > > -----------
> > > i get the follownig error:
> > >
> > > Warning: Supplied argument is not a valid MySQL result resource in
> > > /z/mercury/www/niksun/admin/add_doc.php on line 107
> > > element type:
> > >
> > > What is it happening so!!
> > > regards
> > > anil
> > >
> > >
> > > ---------------------------------------------------------------------
> > > Before posting, please check:
> > > http://www.mysql.com/manual.php (the manual)
> > > http://lists.mysql.com/ (the list archive)
> > >
> > > To request this thread, e-mail <mysql-thread117225@stripped>
> > > To unsubscribe, e-mail
> > <mysql-unsubscribe-joc=presence-pc.com@stripped>
> > > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> > >
> > >
> > >
> > >
> >
>
>
>
>