title: How to fetch row count in PHP in Mysql Database?
body: <pre><code>$count = mysql_query("SELECT COUNT(id) FROM users");
  
  echo $count;
  </code></pre>
  
  <p>This is not working . Error message Resource id Unknown #21.<br>
  how to fix this ?</p>