The fastest and easiest way to generate notifications (emails, etc.) about inserts / changes / deletions of a database is to make it from a script that performs a change in the database.
<?php $res = mysql_query( 'INSERT INTO `table` ( `field1` ) VALUES ( "One" )' ); if( $res ){
Otherwise, if you are not doing database manipulations yourself (for some reason) or want to perform computed summaries (hourly, daily, weekly), you will need to use something like Cron Job to query the database and check for changes .
<?php
source share