forked from extern/egroupware
Added get_last_insert_id() to return the last auto increment ID from an insert query.
This commit is contained in:
parent
079d4db3e3
commit
ea40a2ac06
@ -289,6 +289,15 @@
|
|||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_last_insert_id()
|
||||||
|
{
|
||||||
|
/* This will get the last insert ID created on the current connection. Should only be called
|
||||||
|
* after an insert query is run on a table that has an auto incrementing field.
|
||||||
|
*/
|
||||||
|
|
||||||
|
return @mysql_insert_id($this->Link_ID);
|
||||||
|
}
|
||||||
|
|
||||||
/* public: table locking */
|
/* public: table locking */
|
||||||
function lock($table, $mode='write')
|
function lock($table, $mode='write')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user