I'm triying to display a popup after insert a new record in a table. I have searched in many forums and this is my code:
Code: Select all
function function_alert($message) {// I define the function to display the alert box
echo "<script>alert('$message');</script>";
}
//Then, I call the function in after insert of the php file. In this case is regulations_systems.php
function regulations_systems_after_insert($data, $memberInfo, &$args) {
function_alert("Hi! You added a new item. Please, check it up!");
insert_nucli($data); //This is another function I need to call after insert a new record. This one works fine
return TRUE;
}
Thanks in advance!