Jump to content

Notification on Insert record command


AWithers04

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.