02-15-2008, 12:48 PM
|
#31 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
I used to have mysql_real_escape_string on the query, that's why I had the brackets. I tweaked the md5 line you wrote, because it wasn't working properly. I now have:
PHP Code:
$query = 'INSERT INTO users SET user_name = "'.$reg_username.'", email = "'.$reg_email.'", user_pass = "'.md5($reg_password).'", user_pass_conf = "'.md5($reg_pass_conf).'"';
Query is fine now, it's just not logging in with the encoded password.
EDIT: What about the login script, would I need to add the md5 function in there somewhere?
|
|
|
|