2
I have a $nregistros variable that defines the value of records to be inserted in the table "Formularios".
If $nregistros is equal to 4 for example, it should insert 4 rows as follows:
formularios
id|campo
6 | 1
7 | 2
8 | 3
9 | 4
the "id" field is autoindex, and the "field" field should start at 1 and go to the final value of $nregistros, in this case, 4
How can I do that?
Just what I needed, thanks!
– Leandro Marzullo
I’m glad I could help. :)
– Jorge.M