i have passwords for users stored in a mysql table encrypted using the mysql password() function.
i want to authenticateUser($user, $password), but how do i encrpyt the $password from the form so that i can compare it to what is stored in the mysql database? do i need to insert it into a temp table and use the password() function, then compare the temp values to the user table values?
if there is another way to do this, i'd love to hear. thanks...
i want to authenticateUser($user, $password), but how do i encrpyt the $password from the form so that i can compare it to what is stored in the mysql database? do i need to insert it into a temp table and use the password() function, then compare the temp values to the user table values?
if there is another way to do this, i'd love to hear. thanks...