Jump to content

[SOLVED] how would you construct


MikeDXUNL

Recommended Posts

not actually HOW you do it, but how you would

 

on Xbox there are achievements for games.

 

if I have a database with a table called 'games' and lets say I have The HULK videogame.

that is 'gameid'=1 in an entry

 

 

now there is gonna be an 'achievements table'

the achievements table will contain `achievement name`, `achievement description`, `achievement picture` and so on

 

 

how should i construct the table to have all the acheivements and stuff?

should i make 1 achievement per row? or how?

 

if you need me to reword this, just ask.

 

Thanks in Advance,

Mike

 

Link to comment
https://forums.phpfreaks.com/topic/109085-solved-how-would-you-construct/
Share on other sites

so something like this?

 

games

+-------+-------------+

|  id      |  title            |

+-------+-------------+

| 1      |    The HULK  |

+-------+-------------+

 

 

achievements

+-------+-------------+---------------------+--------------------------+-----------+

|  id      |  gameid        |        name              |          description            |    picture  |

+-------+-------------+---------------------+--------------------------+-----------+

| 1        |      1          |  Achievement #1    | bla bla bla                      | img1.jpg    |

+-------+-------------+---------------------+--------------------------+-----------+

 

obviously you do 1 achievement per row and you assign it a gameid that way you can join the tables together

 

hope that helps

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.