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?
So I assume that you have one form, in which users can add new lines via Javascript. Then, you process the form, which may have x articles, each composed of one healine, a text and one image, and you want to store them all in a database. Is that right?
You can send me the code that you already have at colin@verot.net
As for the donations, which are always greatly appreciated, you can have more information on this page. Thank you.Reply
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!
You can send me the code that you already have at colin@verot.net
As for the donations, which are always greatly appreciated, you can have more information on this page. Thank you.