View Single Post
Old 02-15-2008, 12:48 PM   #31 (permalink)
StevenF
The Contributor
 
Join Date: Jan 2008
Posts: 87
Thanks: 49
StevenF is on a distinguished road
Default

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?
__________________
My Personal and Photo Blog
StevenF is offline  
Reply With Quote