keep your image references in a table in a database, so that when a product is entered, so is the path to/or a boolean field denoting an image exists for this product, and same when you edit/update/delete the product, you can also make the call to the db to remove the image/image reference.
this is simply the easiest way to do it. hth ..tony Tony Weeg Senior Web Developer Information System Design Navtrak, Inc. Fleet Management Solutions www.navtrak.net 410.548.2337 -----Original Message----- From: Larry Juncker [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 9:10 AM To: CF-Talk Subject: CFDirectory Question I have a shopping cart that I have created and the images can be either gif or jpg. Since I am dynamically pulling from the images folder, how can I check to see which image exists for a particular item. I am currently doing this: <img src="images/#sku#.gif"> I need to be able to see if #sku#.gif exists or #sku#.jpg and then display the proper image. Any help would be greatly appreciated. ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

