When using mysql_num_rows if no records is found it
<pre><code>$check = mysql_query("select email from $emails where email = '$email' and status = '$status'") or die(mysql_error());
$count = mysql_num_rows($check)or die(mysql_error());

if ($count&gt;=1){
    $first = "This email ".$email." already exist in our database!&lt;br /&gt;&lt;br `enter code here`/&gt;";
      $second = "Second Message";
      $msg = $first.$second;
}   
else{   
  $query = mysql_query("INSERT into $emails(email, survey_id, date, type, status)
  VALUES ('$email','$id','$date','$type','$status')")or die(mysql_error());

  if (!$query) die(mysql_error());
}
</code></pre>

<p>I have searched this website and did not find an answer. (All my variables are defined).</p>

<p>Please help! (I am a noobie)</p>
