Maybe this is more of a MySQL dilema, but here goes. I have a banners table and I want to get a count of how many banners people made. So I go:
SELECT Credit, COUNT(BannerID) FROM camb_banners GROUP BY Credit;
And end up with:
DragynWulf: 15 banners
Texcap: 5 banners
Lightning Strike: 11 banners
Michael Kaiser: 3 banners
That's all great except I'd like the order to go from greatest to least amount of banners, instead of alphabetically by credit. However, I have yet to figure out how to sort a MySQL query by its COUNTs. Any ideas? One person once suggested creating a temporary table, which worked in MySQL, but I couldn't get it to fly in PHP.