View Single Post
Old 02-15-2008, 01:24 AM   #24 (permalink)
SOCK
The Acquainted
 
Join Date: Nov 2007
Posts: 154
Thanks: 31
SOCK is on a distinguished road
Default

Quote:
Originally Posted by StevenF View Post
PHP Code:
//creating a query that inserts the data into the database
$query '
INSERT INTO users SET
    user_name = "'
.($reg_username).'"
    , email = "'
.($reg_email).'"
    , user_pass = "'
.md5($reg_password).'"
    , user_pass_conf = "'
.($reg_pass_conf).'"
'

It looks like you're storing the correct value. Remember, MD5 is also a MySQL function, you can do it inline in the query without having to break it up to perform a PHP function.

Otherwise, that bit about storing the $reg_pass_conf value bothers me. Is that the plain text password?

Quote:
Originally Posted by StevenF View Post
I'm still having problems with MD5 encryption. Could someone please look over that and check that I'm using it properly?
See my other post. Check the value in the database, echo out the query string on both scripts (registration / login) to check the values going into the database.
__________________
I reject your reality, and substitute my own.
SOCK is offline  
Reply With Quote