Are you using count in the query or with PHP?
You can use WITH ROLLUP in your SQL if I'm understanding your question correctly. http://dev.mysql.com/doc/refman/5.0/en/group-by-modifiers.html
Paste your query and someone should be able to help.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.