import from Excel to mysql table relation

good afternoon

Sorry want to ask

I’m making an application inventory items

I have a table of data items and goods reception table

all table data inputted by way of import file excel

how can I make when there is new data items in ordering goods can go directly to the tables of goods?

thank you

there is my controller, and when i save false, give the error

What error do you get when you call $model->save() ?

(Please post your code using code tags.)

could you provide a database scheme to understand your task?