Update specific row in FOREACH loop

by Daniel Jensen   Last Updated April 03, 2018 09:10 AM

I've tried and tried, but I can't get this to work. I use Joomla and I have 2 articles/pages, one for edit and one for posting the form. I have a database with all the matches for the World Cup coming up and I want my users to bet on the matches.

So this is the edit-page: https://pastebin.com/W6qBgBKy

And this is the post-page: https://pastebin.com/tykuEFYj

But it won't update anything. I know I have to give every line a specific name, so I used ...name="kampid[]" and ...name="resultat[]". Kampid should find the id in the database where it should update the result (resultat).

Please help me make this work. If you need any more details just say so :)


Related Questions

Display a Value from a Specific DB Field

Updated April 30, 2016 08:04 AM

Delete users from Joomla V2.5

Updated November 08, 2016 08:04 AM

MySQL Query to show images

Updated May 10, 2017 11:10 AM