title: how to count all rows belonging to userid?
body: <pre><code>$userid = $_SESSION[userid]
  $sqll = mysql_query("SELECT count(id) FROM entries WHERE userid='$userid'");
  </code></pre>
  
  <p>Is using <code>count(id)</code> efficient? Or is there a better way?</p>