i want to check that is there any record with given email address in database with this code in PHP, but when i have that email address in the database it says "doesnt exist"! whats the wrong with this code?
$con=mysql_connect("localhost","gvf_lingo","btrbghtre544","vtrbt_lingo");
        $result = mysql_query("SELECT user_email FROM rating WHERE user_email='testuser@gmail.com'");
        $num_rows = mysql_num_rows($result);
      if ($num_rows > 0) {
        echo "exist";
      }else{
        echo "does not exist";
      }
 
     
     
    