Can figure this out..
I want to show 1 of 3 images.
if 1 does not exist try this...
if 2 does not exist then use the default image?...
I can get 2 to work but not 3.
PHP Code:
if (file_exists($img)) {
// echo "The file $img exists";
echo "<img src=\"../carimages/$stockno.jpg\" height=\"120\" width=\"160\" class=\"carimg\">";
} else {
// echo "The file $img does not exist";
echo "<img src=\"../carimages/camerashy.jpg\" height=\"120\" width=\"160\" class=\"carimg\">";
}
Thanks in advance..
Slayer.