Answer the question
In order to leave comments, you need to log in
How to make php grid, what to use?
I form a php form for ordering goods in the admin panel.
5 fields, but how many lines will be in the end - it's not clear.
What tool should be used to form dynamic lines in the order, and then send this information to the database.
I would be glad to help and links)
I googled, but I didn’t find clear answers, or I read it wrong.
Answer the question
In order to leave comments, you need to log in
If you don't need to search by custom data, serialize the array with data and put a string in the base. If you need a lookup or other processing that cannot be done with serialized data, use the nosql solution.
I did not understand your answer a little .. I
assume the following:
there are fields -
No. | name | price | number
and for example the button to add another line.
and form two orders -
a)
1 | title1 | price1 | quantity
2 | title2 | price2 | quantity
3 | title3 | price3 | number
b)
1 | title1 | price1 | quantity
2 | title2 | price2 | quantity
3 | title3 | price3 | quantity
4 | title4| price4 | quantity
5 | title5 | price5 | number
all fields will be filled by hand, but the number of lines is dynamic. But what to use, so that you can create a dynamic order in the lines, and fill them in the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question