View Single Post
Old 10-10-2012, 12:21 AM   PM User | #3
Chris-2k
Regular Coder

 
Join Date: May 2011
Posts: 303
Thanks: 29
Thanked 0 Times in 0 Posts
Chris-2k is an unknown quantity at this point
Thanks, now when i've regged it says: credentials not found, btw they're in the db??

here's the edited func:
PHP Code:
    function user_exists($email)
    {
        
$email mysql_real_escape_string($email);
        
        
$userExists mysql_query("SELECT * FROM users WHERE email='"$email ."'");
        
        return (
mysql_num_rows($userExists) == 1) ? true false;
    } 
Chris-2k is offline   Reply With Quote