If you set the path to the image in a field in your DB, such as imagepath,
then this code will assume that if there is a value in that field, it is the
path to the image you want to display. If it is an empty field, then it will
display the default image. There are a number of ways you could do this, but
this should get you going in the right direction.
<cfif myquery.imagepath EQ "">
<img src="defaultimage.jpg">
<cfelseif myquery.imagepath NEQ "">
<img src="myquery.imagepath">
</cfif>
HTH,
Steve
-----Original Message-----
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 25, 2000 9:51 AM
To: [EMAIL PROTECTED]
Subject: What's the best way
I have an employee profile page that lists a bunch of
things about each employee. And it also has an image
of the said employee. Now my question to the list is
some employees do not have pictures on file. Is there
a way to check, while the page is loading to see if a
certain image file exists, and if it does to load it,
and if it does not, to load a default image or
something ? This would get rid of the broken image on
the page.
Thanks in Advance!!!!
__________________________________________________
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.