You are here: username and password auth « PHP « IT news, forums, messages
username and password auth

Posted by William Stokes on 02/17/05 18:06

Hello,

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.

Thanks
-Will

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация