RE: username and password auth

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

 



[snip]
What is the best or right way to compare users name and password given
in a 
web form to data in mysql database?

I saw one example where sql SELECT query was made with username and
password 
as WHERE and the script tested how many rows was returned from database
if 
there was 1 row returned the login was accepted.

Is there other ways to do this? What if the usertable has more than
these 2 
columns.
[/snip]

How familiar are you with database usage and SQL?

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