Re: Num rows error
| From: | Dallas Kropka | Date: | Wed, 11 Oct 2000 01:26:15 +0000 |
| Subject: | Re: Num rows error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19434@lists.php.net to get a copy of this message | ||
the problem seems to be with the Query
I tested the query and it is unable to perform
----- Original Message -----
From: "Dallas Kropka" <dallask@firstworld.net>
To: "PHP LIST" <php-general@lists.php.net>
Sent: Tuesday, October 10, 2000 6:20 PM
Subject: Re: [PHP] Num rows error
> I have already connected, and this is just a snippet.
>
>
> ----- Original Message -----
> From: "Jason Murray" <Jason.Murray@melbourneit.com.au>
> To: "'Dallas Kropka'" <dallask@firstworld.net>; "PHP LIST"
> <php-general@lists.php.net>
> Sent: Tuesday, October 10, 2000 5:04 PM
> Subject: RE: [PHP] Num rows error
>
>
> > > this is the code.
> > >
> > >
> > > $check = "SELECT * FROM list WHERE email = '$email'";
> > > $query = mysql_query($check);
> > > $num_rows = mysql_num_rows($query);
> > >
> > > if ($num_rows)
> > > $email_exitst=1;
> > >
> > > im getting an error that says this...
> > >
> > > Supplied argument is not a valid MySQL result resource
> > >
> > > and b4 you say it, I used mysql_error() and it didnt come up
> > > with anything,
> >
> > There's no mysql_connect or mysql_pconnect in this code. If
> > you haven't connected to the database you can't query it.
> >
> > Jason
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>