Welcome Guest, Not a member yet? Register   Sign In
insert data into 2 table
#1

i wanna ask you for all of the expertttt in CI, i've got a problem, i have a form that contain "id_diskon". I want to insert that "id_diskon" attribute into two different table,  which is table diskon and table diskon tunai. in table diskon, "id_diskon" is a primary key and in table diskon tunai, "id diskon"is a primary key foreign key, so this is an "is a" case in erd diagram. my question is, can you guys tell me the query for the model and controller to run that form, because when i run in my text editor, i've always got an error message like this picture above.

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
insert data into 2 table - by zembarekosaputra - 12-27-2016, 05:49 AM
RE: insert data into 2 table - by suhindra - 12-27-2016, 09:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB