Re: counting records in db

From: Date: Thu, 26 Oct 2006 18:53:26 +0000
Subject: Re: counting records in db
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-243702@lists.php.net to get a copy of this message
>>Would it be ok to use the same code to check if customer is loged in? >> >>$query = mysql_query(" >> SELECT COUNT(Username) as NoOfRecords >> FROM customers >> WHERE Username = '$Username' AND Password = >> '$Password'"); >>if (mysql_result($query, 0) == 0) I just realized that the answer I already got in previous answers :) Didn't pay an atention! :) Thanks. -afan

« previous php.general (#243702) next »