IF condition not processed
<p>Please, anyone can help me to understand why if not working?
I echo variable to check out values and i have respective 0 and 1, same IF conditions...
Query works, IF not work...</p>

<pre><code>$data = ($_POST);
$cn = $data['cn'];
$email = $data['email'];

$con1 = mysql_query("SELECT * FROM `crm` WHERE cn = '$cn'", $con);
$num_cn = mysql_num_rows($con1);

$con2 = mysql_query("SELECT * FROM `crm_contacts` WHERE email = '$email'", $con);
$num_email = mysql_num_rows($con2);

        echo $num_cn;
        echo "&lt;br&gt;";
        echo $num_email;

 if ($num_cn == "0" &amp;&amp; $num_email == "1") {
    echo "&lt;script type='text/javascript'&gt;"; 
echo "location.href='crm.php?Error=2;"; 
echo "&lt;/script&gt;";
 exit;
 }
</code></pre>
