Here is what I am using now:
$query = mysql_query(" SELECT vote_count FROM votes "); while ($row = mysql_fetch_array($query)) { $total_votes += $row['vote_count']; } echo $total_votes;
Is there a more concise way, perhaps in the request itself without using a while loop?
source share