PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a form that 'can' have many rows of input. Can anyone suggest a way to input each 'Section' one after the other?
Until I can work out how to dynamically make new rows appear I will use 10 rows of input.
The code below enters the 'last' row of data 10 times. If I move the 'mysql_query' statement outside of the loop the 'last' row is entered once.
I think I understand the concept for creating the form dynamically now, thanks.
But I'm still unsure on how to INSERT each of the "rows" into the database.
Can you help?
Ok I think I've got a rough idea on the multidimensional array. Although this displays the same output 3 times.
If I remove the 1st foreach loop I get "Multidimensional Array" then the output from the 2nd foreach (which looks fine)
Any ideas on this? Should this be a standard array and not multi?