Jump to content

Creating database columns


HighFlyerPL185

Recommended Posts

Hi,

I was wondering how I could create a database column in a way that I could avoid it being wiped out during updates? They don't come often, and I'm not complaining at all, but I'd rather be safe than later lose that data.

If there is a way to do this, I'm absolutely clueless on how to assign arrays so they can display in a table, i.e $schedules->new_column_name, so could anyone please redirect me towards some kind of a tutorial or point to a starting point with an example? For instance, I'd like to add a column called 'division' to phpvms_schedules. The column would be used to assign simple values, 1, 2, 3 etc. 1 for example could stand for Low-Cost, and then I could do an if else statement to display an image for that division. Would that work or is there some more trickery to it?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...