If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You use method POST for the upload form submit but $aantal is populated to whatever $_GET['x'] is set and if it's not being set on submit then it's defaulting to 0, and the loop iterates only once. This is based on the code as posted here in this topic. Debug it to ensure its set properly. Or set that to a static integer, or use foreach.

And consider this instead, i.e. to default $anntal sensibly if $_GET['x'] is invalid or not set (your method is prone to injection and security issues):

OK, I did a lot of research and finally I made some progress
When I submit the form now, it's uploads (and resizes) all the images i enter at the input fields.
But it only inserts the first image url into the database...