Since you believe the two variable to be the same value, but are stumped as to why they don’t compare as being equal, it would suggest the values aren’t the same. So, a good next step would be to take a close look at what the values really are, because it can give a great a hint at where the problem manifested itself. var_dump() is a good way to inspect the value of a variable.
You might also want to var_dump($row) to see if the array has any values at all, or if it’s even an array.
Depending on the outcome, next step might be to verify the query succeeded. inspect the value of $confEmail, and also see mysql_error() and mysql_num_rows().
If pinpointed the error more closely. When I die the error message, I get “Access denied for user ‘SYSTEM’@‘localhost’ (using password: NO)” Here is my SQL code.
require("includes/connect.php");
$cemail = mysql_real_escape_string($_POST['email']);
$sql = "SELECT Email FROM sq_users WHERE Email = ".$cemail;
$res = mysql_query($sql) or die(mysql_error());
If they don’t match, they are 100% not the same. Are you sure the password in the database is not also salted? Or that it is hashed with md5() and not sha1() or something other?