Re: Num rows error Problem found, plez shoot me

From: Date: Wed, 11 Oct 2000 01:29:29 +0000
Subject: Re: Num rows error Problem found, plez shoot me
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-19438@lists.php.net to get a copy of this message
It seems that I had this code written above the code that selected the db.... I hate it when that happens, but thanks for the help ----- 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 > >

« previous php.general (#19438) next »