a few suggestions:
1) drop the # inside the <cfif ...> - no need for them
there.
2) better checking may be <cfif
len(trim(getBrands.cat_level2_image))>
3) you may also want to check that the image file exists in
that folder:
<cfif len(trim(getBrands.cat_level2_image)) AND
fileexists(expandpath('#imagePath#images/logoImages/#getBrands.cat_level2_image#'))>
- this way you won;t get the broken image/red cross icon if
the redord
for the image in your db exists but the actual image in the
folder has
been deleted...
4) alternative to #3 is adding an onError event to the
<img> tag with a
simple js changing the image source to some generic "No Image
Available"
image: <img src="..." ...
onError="this.src='your_no_image_available.jpg';">
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/