I'm trying to modelize a configuration table for my application, and I'd like to have your opinion on how to store multiple values for a configuration value.
For example, how to store the available languages? How to store the allowed files extensions, etc.?
I'd like to have a field key and a field value in my table configuration, but I have multiple ways of storing the value:
- Serializing a PHP array and storing this in one row,
- Storing all values separated by a comma, like this
1,4,9,42 - Having multiple rows with the same
keybut differentvalues. I don't see how I could get this working, it would be very unusable...
Thanks for your help :)