Store LAST_INSERT_ID() in a transaction

Posted by Oden on Stack Overflow See other posts from Stack Overflow or by Oden
Published on 2010-06-03T02:53:47Z Indexed on 2010/06/03 3:04 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

Hi,
I use codeigniter's database abstarction, and im doing a transaction with it. My problem is, that i have several inserts into several tables, but i need the insert id from the first insert query. Is there any way to store the last insert id for more than one following insert?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql