GA PunkFreak
11-02-2005, 04:37 PM
Hello,
I am wondering if any of you have any ideas of how I can accomplish this:
I have a mysql table with five rows of each team, with columns "Wins" and "Losses" (just the number of wins and losses the team currently has).
I want to be able to select all the teams, then find the Win percentage in PHP (simply Wins divided by Wins + Losses), then order the rows based on that percentage.
Thanks,
-Phil
I am wondering if any of you have any ideas of how I can accomplish this:
I have a mysql table with five rows of each team, with columns "Wins" and "Losses" (just the number of wins and losses the team currently has).
I want to be able to select all the teams, then find the Win percentage in PHP (simply Wins divided by Wins + Losses), then order the rows based on that percentage.
Thanks,
-Phil
