in reply to Aaaarghh...hashes of hashes..again :(
You need to separate your data from your business logic - data in tables like "Player", "Game" and "score", where "score" makes the relationship between a player and the game.
This will allow simple to complex queries like "select name, gamescore from player inner join score on score.playerid=player.id order by gamescore descending limit 3" will give you the top 3 players across all games, unless you care to limit that.
IMHO, this problem space is screaming for a database.
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Aaaarghh...hashes of hashes..again :(
by chrestomanci (Priest) on Mar 23, 2011 at 09:29 UTC | |
by NetWallah (Canon) on Mar 24, 2011 at 04:27 UTC |