Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Ordering table by count of
06-26-2013, 04:12 PM #1
- Join Date
- Jul 2011
- Thanked 0 Times in 0 Posts
Ordering table by count of
Hello. I have matches table that looks like this:
PLAYER 1 | PLAYER 2 | WINNER
table name: league_battles
I need to order this table in PHP by the number of wins of a player.
most wins = top of the table, to the lowest.
How I can do this?Need domain? Buy Cheap Domain at Rapid Host :)
06-26-2013, 06:01 PM #2
Trivial, except you don't tell us how that data tells you WHICH ONE is the winner!
Does the table look like this:
player1 | player2 | winner 7 | 13 | 13 2 | 22 | 2An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.