insert data into 2 table |
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.
|
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
|