class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
The number of upload fields is the rub: it can be as many as the user wants. In my first post, I pasted the actual INSERT query. As you can see it's in a for() loop, iterating every article that's in the form. Each new article is added dynamically via js. So, for each article POSTed there can be an image.
I was able to get your example to work, just couldn't get the value of the filename into the db.
I'll be happy to provide a donation for your help. If you'd rather have me email something to you, which address should I send it to?
The number of upload fields is the rub: it can be as many as the user wants. In my first post, I pasted the actual INSERT query. As you can see it's in a for() loop, iterating every article that's in the form. Each new article is added dynamically via js. So, for each article POSTed there can be an image.
I was able to get your example to work, just couldn't get the value of the filename into the db.
I'll be happy to provide a donation for your help. If you'd rather have me email something to you, which address should I send it to?
Thanks again!