2016-08-28, 12:11 AM
I'm starting to learn a little bit of php(php7) and MySQLi.
To start with, I'm making a "browser game" that only use buttons, images and that kind of things (something easy).
I don't know if I'm thinking the table structure right... that's my main issue.
An example:
You have your account and you can create a character. The character has several options, like strenght, dexterity, intelligence, etc.
Also, you have a bag with limited slots that you can upgrade in the future, buying a bigger bag.
I want to use different tables for different things, in this case, 3 different bags: the basic (small), the medium and the big one.
So, using this bag as an example...
¿How you link this different bags with your character?
My thoughts were something like using a NUMBER for each one and then, compare with the DB.
¿Am I right or that's not correct?
Thanks for reading.
To start with, I'm making a "browser game" that only use buttons, images and that kind of things (something easy).
I don't know if I'm thinking the table structure right... that's my main issue.
An example:
You have your account and you can create a character. The character has several options, like strenght, dexterity, intelligence, etc.
Also, you have a bag with limited slots that you can upgrade in the future, buying a bigger bag.
I want to use different tables for different things, in this case, 3 different bags: the basic (small), the medium and the big one.
So, using this bag as an example...
¿How you link this different bags with your character?
My thoughts were something like using a NUMBER for each one and then, compare with the DB.
¿Am I right or that's not correct?
Thanks for reading.