How can I get last_insert_id

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
cve
Forum Members
Forum Members
Posts: 44
Joined: Wed Jul 07, 2010 10:54 am

How can I get last_insert_id

Post 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
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: How can I get last_insert_id

Post by Jos »

here you are

Code: Select all

$lastinsertid = $db->Insert_ID();
Post Reply

Return to “Developers Discussion”