Code URL : https://programming-4-students.blogsp...
This video shows how to work with more than one related tables in one submission from Next JS. It is also known as Master - Detail Form and a good example for this application is an invoicing app.
This also features the transaction capability of the PDO which uses beginTrans(), commit() and rollBack()