RE: [PHP] Re: Troublesome Code.

From: Date: Mon, 31 Jan 2005 13:15:56 +0000
Subject: RE: [PHP] Re: Troublesome Code.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207757@lists.php.net to get a copy of this message
> > if (mysql_num_rows($SQL) == 1) { Err, this is just the query string variable right? So you need to do: $sth = mysql_query ($SQL); If (mysql_num_rows ($sth) == 1) Then you will be checking the result set and not just the query string. HTH, Mikey

« previous php.general (#207757) next »