Hello,
I have always stored sets of options like marital status (i.e. single, married, divorced...), sex, hair color, level of study (i.e. high school diploma, bachelors degree, ...), country etc. in database tables. I would then save an index to the selected option in user's profile table.
Pros:
Admin of the website can easily customize options using a web based interface. While doing the same with files needs more effort.
Cons:
I am sometimes forced to join up to 10 tables (in MySQL) to add those information and produce information pages.
1- What other Cons or Pros you see for above method?
2- How about storing these options in simple PHP arrays and keeping them in a file e.g. "constants.php" and using array indexes in profile tables etc.
Which approach is better in your opinion? Keeping options in file or database?
Thanks.