This should be simple but it doesn't work
$photo = "../members/".$vid.".jpg";
if (file_exists ($photo))
echo "<img id='memberpic' src = '$photo'/>";
In this case the image is never shown.
However, if I leave out the if statement...
echo "<img id='memberpic' src = '$photo'/>";
The image is displayed properly when the file exists but with an empty frame when it doesn't. I want to eliminate that empty frame.
What am I missing?