Welcome Guest, Not a member yet? Register   Sign In
A Mysql Question.....
#4

[eluser]mddd[/eluser]
Ok, now you are making sense. From your original post, it was not clear to me that you meant storing the PREFERENCE in the database.

I think adding all of the fields to the users table is not a good idea. That way, you get loads of fields. The option of making a separate table is okay, but it has the disadvantage of growing every time you add a setting in the future.

You might consider making a table that is like this:
Code:
id        user_id   setting   value
Every user/setting combination has its own row in the table. That way you can add settings when you want, you'll never have to change the table design!


Messages In This Thread
A Mysql Question..... - by El Forum - 06-09-2010, 10:53 PM
A Mysql Question..... - by El Forum - 06-10-2010, 12:03 AM
A Mysql Question..... - by El Forum - 06-10-2010, 07:40 AM
A Mysql Question..... - by El Forum - 06-10-2010, 07:48 AM
A Mysql Question..... - by El Forum - 06-10-2010, 07:56 AM
A Mysql Question..... - by El Forum - 06-10-2010, 08:03 AM
A Mysql Question..... - by El Forum - 06-10-2010, 08:10 AM
A Mysql Question..... - by El Forum - 06-10-2010, 08:17 AM
A Mysql Question..... - by El Forum - 06-10-2010, 10:29 AM
A Mysql Question..... - by El Forum - 06-10-2010, 10:48 AM
A Mysql Question..... - by El Forum - 06-11-2010, 01:02 AM
A Mysql Question..... - by El Forum - 06-11-2010, 04:37 PM
A Mysql Question..... - by El Forum - 06-11-2010, 04:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB