Is there was way to use php to sort a series of recordsets by a selected value and display the sorted recordsets?
For example: say I have a database that keeps track of a basketball team - the main table (table_stats) has the player's names, the dates of the games, and the number of points the player scored in the particular game. There are 5 players (sam, cindy, greg, nancy, and vladamirovski) and each played 4 games.
I can make a recordset for each individual player to add their total points as such:
select sum(points) from table_stats where name = 'sam'
Now, is there a way to use php to sort these 5 recordsets for sum(points) and display the results in descending order?
Mason