Let me explain myself a bit more before you reply, disregard everything else you've read until now:
I want to add a simple mailing list addition to a small blog site I run for a few friends of mine. Everyone at my site has their own username and can modify their blogs online. Now I want to add a mailing list feature for each user at my site, where anybody can register for the specific user's mailing list at their blog site.
Let me first explain the simple structure of my database.
I have tables called USERS, BLOG, and VISUAL. In USERS: I store username, password, location, etc. In BLOG: I store blog entries, dates updates, etc. In VISUAL: I store template names, colors, etc.
Now, when somebody signs up for the mailing list for user 'johndoe', I will add their e-mail address to the database in a column called 'mailing_list'.
That shouldn't be difficult when one person signs up, however, when multiple users sign up...how do I take care of multiple e-mails in one column? Are they separated by commas? line breaks? How does it work? How do I store them in an organized manner?
Calling the e-mails is easy, simply:
SELECT mailing_list FROM users WHERE username='johndoe';
Thanks!
-influx