Skip to content
Snippets Groups Projects
Commit 782e4140 authored by Robert Anderson's avatar Robert Anderson
Browse files

Added lastInsertID function

parent 8e766c52
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment