I wonder what's the best way to insert data into a database from a multidimensional form. The name of my form inputs is something like below:
name="order[][quantity]"
name="order[][description]"
name="order[][article]"
name="order[][price]"
name="order[][tax]"
name="order[][discount]"
How to insert this data into my database? Below is a image of my form:
As you can see the user can add many sections and all are to be handled by one submit button. Number of orders is a variable.
How do I resolve this?