Hi John

One possibility is to make a gif called nophoto.gif that is used if there is
no entry in the database photo field.   You might even put "no photo
available" in the image.  Then
use the nophoto.gif in the elseif statement.

OR

Another way would be to have sizes for the width and height parts of the
<img src....>
and possibly even width and height fields in the database.   If the width
and height are 0,  no red "x" appears.

OR
 You could put the entire <img src statement in the cfif statement and in
the elseif
statement make width=0 and height=0.

Gary Letchford
Letchford Design


> Clarification::
>  There is no reference in the db as to whether an
> image for that employee exists or not. I have a link
> created at runtime that displays an image based upon
> the employees name, but if there is no image...i get
> the annoying box with the red x in it.
>
>  I have been playing with fileExists as suggested by
> Jay W., but am having a problem with the syntax for
> the path. This seems on the surface to be the best
> answer for my dilemna, has anyone had much experience
> with this tag when dealing with files ?
>
> __________________________________________________
> Do You Yahoo!?
> Send online invitations with Yahoo! Invites.
> http://invites.yahoo.com
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to