I see that this will get the last inserted ID:
$e["on_after_insert"] = array("after_insert", null, true); // return last inserted id for further working
but I don't see and docs on how to reference this ID in my function
e.g.
function after_insert($data)
{
$LastInsertedID = (what?)
}
Can you explain how to get the last inserted ID?
thanks
Roy.
2 Answers
You can print_r($data) and check output in firebug insert call response.
It's usually $data["<first-column-name>"]
Your Answer