28.07.2015, 10:13
I want to script a shop where people can buy different items, now I know how to do this buy I am wondering what would be the best way to store wether someone has bought this item.
Would I just create another table with structure 1 (found below) and fetch all rows of that player or should I use structure 2?
structure 1: bought_items: player - itemid
structure 2: bought_items: player - item1 - item2 - etc...
Thanks for all responses!
Would I just create another table with structure 1 (found below) and fetch all rows of that player or should I use structure 2?
structure 1: bought_items: player - itemid
structure 2: bought_items: player - item1 - item2 - etc...
Thanks for all responses!