I just can't figure this out.
$piclocfull=$piclocprefix.$findpic[0].'-th.'.$findpic[1];
if(file_exists($piclocfull)){ // this line
$img_display=$piclocfull;
} else{
$img_display=$piclocprefix.'noImagelogo50.png';
}
This script returns all images as the NOIMAGE logo (opposite of what I want).
$piclocfull=$piclocprefix.$findpic[0].'-th.'.$findpic[1];
if(!file_exists($piclocfull)){ // this line
$img_display=$piclocfull;
} else{
$img_display=$piclocprefix.'noImagelogo50.png';
}
This script returns all images with the piclocfull URL, including the ones that are non-existent images, which should have become the noImage logo.
So how do I set it up so the image files that exist are displayed, and when one doesn't exist, we display the noImage logo?
Thanks for any thoughts.