title: Need a little guidance on counting and calculating sum of rows.
body: <p>I'm making a little voting tool (voting from 1 to 5) and I have the votes stored in a DB. I'm wondering, what is the best manner to count all the rows (of a specific post ID) and then calculate the sum of those specific rows so that I can display the results.</p>
  
  <p>i.e </p>
  
  <pre><code>Results: 3.5 / 5
  (total votes: 1047)
  </code></pre>
  
  <p>Should I use a PHP loop or MYSQL sum? </p>