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
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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.