Is there a way I cand send an email when I delete a record from db? I mean I want to show what was erased, actually I can send the email but empty
$e["on_after_insert"] = array("manda_correo", null, true);
$e["on_delete"] = array("correo_borrado", null, true);
"some part of the emaail"
btw when I insert a record the email shows the values inserted
In on_delete, you can first fetch record based on ID on row and send in email. The actual delete query is executed after this function.
Inside callback, you can call …
$rs = $grid->get_one("SQL QUERY WHERE ID=".$data["params"]["id_supervisor"]);
where $grid is jqgrid() object and $rs will have data in array format.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?