02-15-2008, 12:20 PM
|
#27 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
There's something going on here. I've encrypted the password like above:
PHP Code:
$md5reg_password = mysql_real_escape_string($_POST['reg_password']);
Then again in the query:
PHP Code:
user_pass = "'.md5($reg_password).'",
When I try to login with a password that's been encrypted, it doesn't work. If I do the following:
PHP Code:
echo $reg_password
The password will show as it should - plain text. Now, If I remove both of the md5 stuff, then register and try to login with them it works fine. 
|
|
|
|