title: SELECT always returns something even when the db is empty
body: <p>my problem is that always the result is bigger than 0 and all the time he's telling like there is something inside the database, but in fact the database is empty, what could be the reason? I must have done something wrong here.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>&lt;?php
     header("Content-type: text/html; charset=utf8");
  
     $connection = mysql_connect("localhost","username","password"); //   Your Username and Password
     if(!$connection)
     {
         die("database connection failed:" . mysql_error());       
     }
     $db = mysql_select_db("database_name",$connection); //   The database name
     if(!db)
     {
         die("database connection failed:" . mysql_error());
     }
     mysql_query("SET NAMES 'utf8'",$connection);
  ?&gt;
  
  &lt;?php
  
      $varGet1 = $_POST['deviceToken'];
      $varGet2 = $_POST['uniqueIdentifier'];
  
      $result = mysql_query("SELECT * FROM `push_notification_users` WHERE uniqueIdentifier = '".$varGet2."'");
      if ($result &gt; 0)
      {
          echo 'UDID found on Database. Not added.'; 
      }
      else
      {
          $result = mysql_query("INSERT INTO `push_notification_users` (`deviceToken`,`uniqueIdentifier`) VALUES ('".$varGet1."','".$varGet2."')");
  
          if($result === FALSE)
          {
              die(mysql_error());
          }
          else
          {
              $message = "UDID didnt found on Database. Added successfully";
              echo $message;
          }
      }
  
      mysql_close($connection);
  ?&gt;
  </code></pre>