title: the error says it gives boolean value
body: <p>I get an <strong>error</strong> on the <code>$count</code> part for validating if data exists, 
  it says that      </p>
  
  <blockquote>
    <p>it returns boolean values</p>
  </blockquote>
  
  <p>but I don't get why. I've put a comment on which line, where the error is located.</p>
  
  <pre><code>    $check = mysql_fetch_array(mysql_query("SELECT * FROM `request` WHERE `Request_ID`=''"));
      $count = mysql_num_rows($check); // error is here 
  
      if($count &gt; 0){
          ?&gt;
          &lt;script&gt;
              alert('Data Already Exist!');
          &lt;/script&gt;
          &lt;?php
  
      }else{
      mysql_query("INSERT INTO `request` (`Request_Name`, `Request_Date`, `Request_By`,`Description`,`Quantity`, `Price`, `Destination`,`Reason`) VALUES ('$name', '$date', '$req','$desc','$qty','$prc','$dest','$reason',)");
      ?&gt;
      &lt;script&gt;
          window.location = "home.php#requi.php";
      &lt;/script&gt;
      &lt;?php
      }
  </code></pre>
  
  <p>} </p>
  
  <p>How to fix this? </p>