If you are using password() to validate the password when a user is logging in, you should have also used password() when you created the password in the database. Once you convert the password using password() you can't change it back. You have to use password() everytime to check it.
Hope this helps, -- Nicole Amashta Web Application Developer www.aeontrek.com "Nik Alleyne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there everyone, > my problem should b simple. > > Problem: > I am trying to validate a username and password though HTML forms. The > thing is when i encrypt the password using mysql password encryption > function 'PASSWORD()' and try to validate the password I am getting the > error message that I've set for when the username and/or password is > invalid. However, if I do not encrypt the password, i am validating quite > easily. > > can someone please help; > > Thankx > Nik > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php