Hi there In the class Node extends fActiveRecord I want to get the last insert id. How can I do that? Thanks!
function save($node_id=null){
//insert the new node
$result = fRecordSet::buildFromSQL(
__CLASS__,
"INSERT INTO nodes
SET parent = $node_id"
);
$result->insert_id;
}
return $result->insert_id;