
March 23rd, 2003, 09:58 PM
|
|
MySQL Newbie
|
|
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Hide missing images???
Is there a way I can test if an image file exists before displaying it?
I have a database that has an image field in it that users enter a filename into. Is there a way for me to check using an "if" statement that the file is actually on the drive before displaying it? ie:
<%okimage=(rsFile.Fields.Item("image").Value)
If okimage='actually on the drive' then%>
<img src='(rsFile.Fields.Item("image").Value)'>
<%else%>
<img src='noimage.jpg'>
<%end if%>
|