I agree with kropes2001 -
Since you control the web site, you should be able to allow how photos are uploaded - I presume that you are setting the site up to be managed by your client (so they can upload their own photos to be displayed with new or existing products). I also assume that the client will be uploading the images via a web page (not just ftping the files to a folder). Use the form controls to require and validate data before storing in the db (and saving image to img folder)
Quote:
|
(Problems with the update method of a product-you have to implement the case the photos are already in the server, the case the user have to upload others and also there are already some photos related with the products-some will be again related some other no.)
|
If this is the case, simply store the name of the image ("prod24.gif") in a table with the product id (or page id). You don't need to change any of the actual text (content) of the product (page's content). Just add an asp script to handle images (reusable script to paste or Server Side Include on required pages)...I don't think this is coming out clear.
Try this explantion:
product.asp
some text here formatted with html, etc...
then use asp to connect to db, return everything from images table that has matching prod id...
select * from tblImages where product_id=[<%=currentProductId%>
...then put your loop code / logic to display images however you choose to format...
The above is just to illustrate the concept, not real code of course
I do something similar with product images on my site. here's a product with mulitple images.
www.games-for-less.com/settlers-of-catan.asp
How many pages are we talking about? This may seem like a lot of work if it's just 25-50 products...but if it's more, then it's not much work at all.
Best of luck dimis!