PHP-Access Tutorial:
http://www.phpbuilder.com/columns/siddarth20000228.php3
Sending insert notications:
function sendMail() {
global $SERVER_NAME,$SERVER_SOFTWARE;
$date = date("Y-m-d");
$time = date("H:i:s");
$to = "your_address@somedomain.com";
$subject= "New Record Inserted to Access DB";
$body: = "On $date at $time, a user successfully inserted a new record into the M$ Access backend";
$x_headers = "From: \"Automated Record Insert Notifer at
$SERVER_NAME\"\nReply-To: \"\"\nX-Mailer: $SERVER_NAME via $SERVER_SOFTWARE";
@mail("$to", "$subject", "$body", "$x_headers");
}
Simply write your db functions to call this function if the record insert/update succeeded. You need to make sure that you have specified your sendmail path (*Nix) or external smtp server address (Win32) in order for the mail to send. HTH,
Cheers,
Geoff A. Virgo