I have three related tables as follows:
Now what I have to do is edit the information of a course, for example, the start date and in the quota table edit the amount of fees, to later edit the number of amounts in the table detalle_cuota. It is an update to the 3 related tables, but I do not know how to handle the update, I guess it is through the id_primary but I'm a bit lost. All these data I bring them in a form and then edit them, for example I want to change the start date that is: 08-26-2017 to 08-30-2017, edit the amount of course fees, have 4 installments now I want put 6 installments, and according to that amount of fees I updated the amounts in the table detalle_cuota, if they were in 4 that are now 6. I need guidance please! The only thing that occurs to me is to do 3 update and go retrieving the id that updates in each update, but I do not know if it works.