Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I'm not sure how to go about this but I've got 2 tables a players_tbl and a users_tbl. With the fields listed below:
players_tbl
-id
-name
-score
users_tbl
-id
name
-player1 [this is the id of the player from the players_tbl]
-player2
-player3
-player4
-player5
-player6
-player7
-player8
-player9
-player10
-player11
k what I need todo is list all the users arranged by their total score [ this is calculated by adding the score up from the players_tbl where player1 to player11's id = the idea in the players_tbl] and put their total score next to their name.
I know it's quite confusing but i'd be greatful for your help, thanx
players_tbl
-id
-name
-score
users_tbl
-id
name
-player1 [this is the id of the player from the players_tbl]
-player2
-player3
-player4
-player5
-player6
-player7
-player8
-player9
-player10
-player11
k what I need todo is list all the users arranged by their total score [ this is calculated by adding the score up from the players_tbl where player1 to player11's id = the idea in the players_tbl] and put their total score next to their name.
I know it's quite confusing but i'd be greatful for your help, thanx