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;
}