Re: counting records in db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux