diff --git a/webgui/include/db.php b/webgui/include/db.php index 4b0535084d8eda8e0d585c33538bb9cf322d2f13..693ed819f88b0d1eef38ea1fab92de7263bbc7da 100644 --- a/webgui/include/db.php +++ b/webgui/include/db.php @@ -390,6 +390,24 @@ function DBSelectSearch($query,$search,$filters,$sorts) { } +## @fn DBLastInsertID($table,$column) +# Function to get last insert id +# +# @param table Table to check +# @param column Column to get last insert on +# +# @return Last insert ID or undef on error +function DBLastInsertID() +{ + global $db; + + # TODO: Implement $table nad $column?? + $res = $db->lastInsertID(); + + return $res; +} + + # Connet to database when we load this file $db = connect_db();