Re: Num rows error

From: Date: Wed, 11 Oct 2000 01:20:32 +0000
Subject: Re: Num rows error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19433@lists.php.net to get a copy of this message
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 > >

« previous php.general (#19433) next »