Are all of the pictures stored in the same directory?
If so, try:
<cfdirectory action="LIST" directory="#UNCDirectoryLoction#" name="emppics"
filter="#EmployeeName#.jpg">
<cfif emppics.recordcount EQ 0>
<img src="<cfoutput>#EmployeeName#.jpg</cfoutput>">
</cfif>
Russel Madere, Jr.
Web Developer
"Be good and you will be lonesome.
Be lonesome and you will be free.
Live a lie and you will live to regret it."
Jimmy Buffett
That's What Living Is To Me
-----Original Message-----
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 25, 2000 9:47 AM
To: [EMAIL PROTECTED]
Subject: Whats the best way (Clarification)
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.