I have a script to upload photos of products to a file on the server. In my database, for each product, I have an image path field pointing to the to the photo for that product.
The problem is when the user is adding a new product. The user adds the product to the db then uploads the photo (I have the image path default set to an image no_photo_available.gif. I need to update the image path field with the new photo but I don't know the file name of the photo the user user just uploaded. So I need the user to point the new product to the photo. I think I need to display all the photos and have the user pick the photo to go with the new product, but how?? Any ideas?
Thanks!