$sql = mysql_query("SELECT email FROM users WHERE email ='$email'");
if(mysql_num_rows($sql) != 0)
echo '<font color="ff0000"><li> Email exist!</font>';
So my problem is, that even if i write an email that i know exist in the database it let me through. I got the config.php include a bit up in the code so the database connection is no problem.