Page 1 of 1

How can I get last_insert_id

Posted: Thu Dec 23, 2010 11:55 am
by cve
Hi everyone!,
I'm working with new module for CMS MS and I need last_insert_id with ADOdb in install action in module... How can i achieve that???
My db is mysql 5.xx

Re: How can I get last_insert_id

Posted: Thu Dec 23, 2010 12:00 pm
by Jos
here you are

Code: Select all

$lastinsertid = $db->Insert_ID();