Jump to content

MySQL stratedgy for a customisable database


ScrewLooseSalad

Recommended Posts

  I've now made a php application for organising company stock, however, the company has stock stored offsite, and just acquired a new supplier that's now holding stock; as this is likely to happen again I don't want to add another column manually and add in the code myself, I need to put this ability into the app; my concern is whether allowing a php app to make columns is wise.

 

 Are there any common security risks associated with this privilege? Is there another tactic people take or am I able to add this ability in safely? Perhaps as an admin user on the app?

your "stock" table should have a "location" column that holds the id of the location the stock is at. you should have a "location" table that you simply add a row to with a new id (auto-increment) and the new location details any time you need to add a location.

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.