title: Why does this return Resource id #2?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4290108/how-do-i-echo-a-resource-id-6-from-a-mysql-response-in-php">How do i “echo” a “Resource id #6” from a MySql response in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I am new at php and SQL and I'm trying to make the php page list the numbers of enries in the table.
  I'm using this code but it returns Resource id #2:</p>
  
  <pre><code>$rt=mysql_query("SELECT COUNT(*) FROM persons");
  echo mysql_error();
  echo "&lt;h1&gt;Number:&lt;/h1&gt;".$rt;
  </code></pre>