AWithers04 Posted October 5, 2008 Share Posted October 5, 2008 I have a simple message board that i built with dreamweaver. The users have to log in to post a message on it and all messages are posted with a simple insert record command. The people i have built the site for would like an email to be sent to them when a new message is inserted so they can review it and determine if it needs to be deleted or not.(they dont want negative comment). Can anyone point me in the right direction on sending an email notification of a new record insert. PHP and mysql Thanks in advance Link to comment https://forums.phpfreaks.com/topic/127078-notification-on-insert-record-command/ Share on other sites More sharing options...
JasonLewis Posted October 5, 2008 Share Posted October 5, 2008 After the new record has been inserted use the mail() function to inform the administrator of a new post. You can then set a variable in the database to false, meaning the post is yet to be approved. Then make a simple admin area where they can approve the post, where the variable is changed tot true. Link to comment https://forums.phpfreaks.com/topic/127078-notification-on-insert-record-command/#findComment-657343 Share on other sites More sharing options...
AWithers04 Posted October 5, 2008 Author Share Posted October 5, 2008 do you know where i can see an example of how this should be used in my situation? Link to comment https://forums.phpfreaks.com/topic/127078-notification-on-insert-record-command/#findComment-657364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.