Saving player's inventory in a MySQL database.
#2

Make more rows! Columns are static, rows are infinite. Create a separate table.

Code:
userid, itemid, amount
You might also want to create a table that holds the items and their descriptions.
Reply


Messages In This Thread
Saving player's inventory in a MySQL database. - by Shetch - 19.01.2014, 23:28
Re: Saving player's inventory in a MySQL database. - by Vince - 19.01.2014, 23:31
Re: Saving player's inventory in a MySQL database. - by Shetch - 20.01.2014, 00:12

Forum Jump:


Users browsing this thread: 1 Guest(s)