Well, I'm not informed enough to suggest what might be better in your situation. However, if you wanted to track a bunch of games and some information for each of those games you'd want something like:
Quote:
games
------
game_id
game
game_x
game_y
created
gameinfo
--------
info_id
game_id
info_x
info_y
created
|
Then, you could show a list of games as a "menu" and once you picked a game a list of "info" items as a "menu"... taking you to the page of info, for example.
You could also added an info comment table if you wanted:
Quote:
infocomment
------------
ic_id
info_id
comment
created_by
created
|
Hopefully, if you set things up nicely, the HTML/CSS portions are mostly defined outside of your code and you place the table based output into your page.
Hint, it is often nice to accumulate your output instead of echoing in place. If you create a function which returns the output as a string... you can easily move the output to any part of your page or to another page without having to physically move the entire chunk of code.
So, for example:
PHP Code:
$gamemenu = get_game_menu($dblink); // Prepare list of games as a link list
echo $gamemenu;