I know many of you already done with this sort of situation
i have a form which have few fields and on submitting that form i want these field values save into two tables.
Both the tables contains a primary key and foriegn key.
Let table one have id as PK and table 2 has id as FK in that table so in this way these two tables are related to each other.
I am not getting how will i code to insert data in both tables in single funtion and using the PK and Fk constriant.