I tried to check one of the form variables in the headerCustom.inc.php and then include my script "copy-newest-event":
if(!empty($_POST['title']))
{
include 'copy-newest-event.php';
}
My script contains: SELECT * FROM epc_calendar ORDER BY id DESC;
The problem now is that my script does not copy the newest, just created event but the one before that.
It looks like the just created event is not yet stored in the database at the time when my script is executed.
|