Welcome Guest, Not a member yet? Register   Sign In
Inserting data into multiple tables
#4

(06-01-2017, 12:02 PM)Paradinight Wrote:
(05-31-2017, 08:53 PM)Junie Wrote: Hello,

In basic sql command to insert data into multiple table with foreign key relation the last inserted id is helpful. In codeigniter how can I insert data into  multiple table with foreign key relation. I'm reading at some helpful tutorials like using transactions. Can someone teach me how to implement in codeigniter or any code snippets that can share in order to help me. I'm still learning this framework.

Thanks Smile

Have you read https://www.codeigniter.com/user_guide/d...tions.html ?

I already read this. What Im trying to emphasize is does transaction is the way to insert data from a foreign key constraint? Or theirs other way.
Reply


Messages In This Thread
Inserting data into multiple tables - by Junie - 05-31-2017, 08:53 PM
RE: Inserting data into multiple tables - by Junie - 06-01-2017, 05:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB