Re: mysql_num_rows();

From: Date: Thu, 15 Aug 2002 01:17:20 +0000
Subject: Re: mysql_num_rows();
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112641@lists.php.net to get a copy of this message
On Thursday 15 August 2002 07:35, Sascha Braun wrote: > This is my query with some dummy loginformations: > > SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = > 'hals' > > and this is the code i use for the database transaction: > > $Query = "SELECT * FROM benutzer_db where Benutzername = > '".$SESSION['nickname']."' "; $Query .= "AND Passwort = > '".$SESSION['password']."'"; > $Result = mysql_query($Query, $connect); > if(mysql_num_rows($Result)>'0') { Try: if (mysql_num_rows($Result) > 0) { -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain" */

« previous php.general (#112641) next »