|
I don't understand the question. If you have a record already, simply take that primary key and provide it to the form so it can be used by the child table during process. If you do not yet have a record, insert into the parent table first, then use LAST_INSERT_ID() to get the insert id of the parent and use it in the child table. This only works on auto_increment primary keys since otherwise you already know what the primary key is.
|