I am trying to sort data from on this page: http://www.excelwrestling.com/sortbymostwinsbyweight.php
I want the table to be ordered by Weight and then the name with most wins in that weight. Also, I would like to add one more column showing the number of wins for that wrestler.
This is what I having from looking at tutorials but they are not being ordered correctly:
$query="SELECT *,Winner, COUNT(*) as count FROM results GROUP BY Winner ORDER BY Weight ASC ";
$result=mysql_query($query);
Thanks!