I am trying to create an invoice form to allow sales to be entered to a database. The online invoice form would look a lot like the paper form with a section at the bottom for entering the payments.
I am having trouble figuring out how to add multiple items to the form, ie. the invoice number and date would have a one-to-many relationship to the items purchased and the payments. How do you insert multiple rows to an item table while inserting only one row to the invoice table? And insert possibly more than one row to a payments table at the same time, using the one form?
I was able to do this no problem in MS Access but it appears to be a lot more difficult in php and mySQL. Is this why they invented shopping carts? Am I thinking about this incorrectly?
Thanks.![]()



Reply With Quote

Bookmarks