[eluser]flyenig[/eluser]
Thanks for the reply but you are talking about something else. Sorry, i failed to explain more about what im trying to do.
Have you ever went on facebook and went to email notification settings or have u ever went on twitter and went to notifications settings? if you didnt, they have some settings like,
"Email me when....
someone sends me a message [checkbox here]
Somone sends me a photo comment [checkbox here]
Someone does something [checkbox here]
Someone Does another thing [checkbox here]
and if they click the check box, each checkbox value is saved in a table that has
Code:
ID(the users id) - notification_1 - notification_2 - notification_3 - notification_4- so on...
and notifcation_1 .. 2.. 3 are Booleans. I think i explained it well now lol
and my email templates are stored in views.
When someone sends kenny a message, it will search in a table for the field "notification_1", and if it has a value of "1", it will email kenny, if it has a "0" then it will not email him. Would I store all these fields in the users table which already has a lot of fields? Or should I make a new Table named, "users_settings" or something?