What\'s the best way to structure a MySQL table for storing admin settings?
Like this?
Setting _|_ Value setting1 | a setting2 | b setting3 | c set
Consider the first option (Setting, Value) as columns. But also consider adding additional, meta columns as well, such as Description (would come in handy if you have alot of ambiguous settings), PreviousValue, LastUpdated, UpdatedBy, etc.
Setting
Value
Description
PreviousValue
LastUpdated
UpdatedBy