AKmahato
8 months ago

How to insert records in two tables from single form

Posted 8 months ago by AKmahato

Suppose I have two tables Category(Parent table) and SubCategory(Child table). In Category table two fields c_name and c_desc and in SubCategory table sc_name, sc_desc and category_id i.e foreign key. I want to insert data in both table but while inserting data I want to send multiple data in SubCategory which is the child table. I'm sending data's from a single form. Please share some code

Please sign in or create an account to participate in this conversation.