PHP/MYSQL: Database Table For Email Notifications
问题 I want to notify users of changes on a site. Users are subscribed to different kinds of changes so I don't send all changes to all users. Here's what I am thinking: at t=0 (i.e. an if statement that checks that some table is empty) I basically have an SQL query that fetches the appropriate changes and mails to the appropriate users. I then populate a user_changes table which essentially stores what changes have been mailed to what users. Mailing is done with the php mail function Then at t>0