FileExists(absolute_path) - returns a true/false based on the existance of a 
file (i.e. your image)

>Hi. I am doing a simple query to pull image file names from a table,
>and then displaying the images with the <img src>. Problem is: Not all
>of the image names in the db are present on the images folder. And I
>don't want to show broken images on my page.
>
>I was wondering if i can do a cffile read, and if it generates an
>error for a missing file, i catch it with cftry, cfcatch, if not it
>displays the image.
>
>I know what to do, but having a problem. Please can someone give me
>some code help?
>
>Thanks,
>Kenn

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212078
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to