Very good. Allthough, I think it's much easier to check user and pass at the same time:SELECT * FROM users where usrnaeme='$usrnaeme' AND password = $pass'Plus it's more secure because you don't let hackers now that the usrnaeme exisits you just display usrnaeme and/or password doesn't exist I don't understand the while in conjunction with mysql_fetch_assoc, doesn't work the same without the while?
Fatih, That method was discontinued due to misuse and hackers have no intrest in hacking into this website, Since it's currently discontinued and further under developement. And what you are asking for requires a MySQL database, Which this web-hosting service does not provide. But anyways that you for your suggestion and Enjoy!