View Single Post
Old 09-13-2007, 06:14 PM   #3 (permalink)
kaykays
Contributing Member
 
Join Date: 09-01-07
Location: Gurgaon, India
Posts: 84
iTrader: 0 / 0%
kaykays is on the right pathkaykays is on the right path
In PHP you can use the function file_exists() to check for the existence
of the image, and accordingly change the image name.

PHP Code:
if file_exists($imagefilename)
    echo 
'<IMG SRC="$imagefilename" >';
else
    echo 
'<IMG SRC="$defaultimagefilename" >'
kaykays is offline   Reply With Quote