database input function

Hello, Anytime someone adds a new event to the calendar I want to send out an e-mail to certain people. I know how to write that function my question is in which file do I find the mysql insert query … the function that actually add’s the information to the database table, where can I find that function?

If you are using connector on server side, you can add the next before render_table command

function send_email($action){ $text = $action->get_value("text"); ... any custom logic here ... } $scheduler->event->attach("beforeInsert", "send_email");

which file am I putting this in-to though?

Depends.
In case of standalone version - in events.php or some other kind of connector file
In case of plugin - viewtopic.php?f=16&t=14225

I’m using the standalone version, when I tried putting it into the events.php file this is the response I get from the system

check samples\03_extensions\php\events_rec.php - this sample contains server side event attaching code