Jump to content

Database layout, arrayish info


shadowfox

Recommended Posts

playing around with some php/mysql stuff and so making a small little text game to pass the time while at work. just trying to find out the best way to setup the database for the spells section. since there are some that will only be used by certain races what the best way to set it up to store that info.

 

i had thought about a field in the table for each race that would be a 1/0 and thought about storing it in a serialize array in one field, but that would be some extra php work in the code.

 

Just trying to find the best solution for something like this, since a few other projects I have to work on could use the same type of database work.

Link to comment
https://forums.phpfreaks.com/topic/163501-database-layout-arrayish-info/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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