What would be the best way to store data [mysql]
#1

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)