Essentially, I am using a basic SELECT field, COUNT(*) FROM table GROUP BY field query, but I want to display a table with the counts - but also with their percentage of the total.
But I have to wait until the end of the row loop to know what all of the COUNT results added together equal. Then I have to create another loop to go through the counts again.
Is there a way I can SUM the COUNT results in the same query?