Code:
if (file_exists('$siteurl/photo/$photoid.$ext')) {
echo "Product: <img src='$siteurl/photo/$photoid.$ext'><a href='$siteurl/$product.html'><font color=Red>$product</font></a><br />";
Seems like this code does not check for the photo existence as it simply shown the emptypic.jpg instead even though there is a photo.
Code:
} else {
echo "Product: <img src='$siteurl/nophoto/emptypic.jpg'><a href='$siteurl/$product.html'><font color=Red>$product</font></a><br />";
}
Anyway to ensure that file exist command really check for the existence before jumping into the else command to show the default photo?
Any suggestion is greatly appreciated.