I need to edit multiple entries in my mysql table at once. What I have so far, is a query that returns all the result of a given date. I then create a loop which writes form fields with each result in its corresponding field.
The problem is I do not want to submit the form for each entry I modify. I want to change the whole day on the same page, and submit the changes all at once. So what I have is:
id1 - time1 - event1
id2 - time2 - event2
id3 - time3 - event3
etc...
I want to edit (for example) time1 - event1 and time2 and event3 all from the same page at the same time. The problem is that my form only passes on the last set of results to the page that updates the mysql table (id3 - time3 - event3). How can I make all the changes submit at once? I thought of using an array, but have been unsuccessful so far...
The problem is I do not want to submit the form for each entry I modify. I want to change the whole day on the same page, and submit the changes all at once. So what I have is:
id1 - time1 - event1
id2 - time2 - event2
id3 - time3 - event3
etc...
I want to edit (for example) time1 - event1 and time2 and event3 all from the same page at the same time. The problem is that my form only passes on the last set of results to the page that updates the mysql table (id3 - time3 - event3). How can I make all the changes submit at once? I thought of using an array, but have been unsuccessful so far...