How to implement an email notification when data is added to database?

There is a page that displays information from the database,it is also possible to add,remove,edit old.How to make after changing the value(any user),all the letter arrived in the mail.Well, roughly, on page www.test.ru the changes come see him.
August 19th 19 at 22:51
1 answer
August 19th 19 at 22:53
Uh .. hang on a submit button changes the function of sending mail to that change ...
$update_sql = "UPDATE documents SET number = '{$number}', naklad = '{$naklad}', WHERE id='{$id}'";
mysql_query($update_sql) or die("insert Error" . mysql_error());

Here for example the script to update to it to push send on mail?This is the simplest solution? - wilfrid commented on August 19th 19 at 22:56
: What's not to like? - rowland_Bednar23 commented on August 19th 19 at 22:59
: I understand you so what's the form for users is introduced, which has input or something. And at the end of the button save. The user clicks on it, the server can leave the request. As soon as Zakros were successful. Followed immediately add the function of sending the mail who need it. Even easier maybe ... - Lydia commented on August 19th 19 at 23:02

Find more questions by tags PHP