Peter, thanks for your reply...
I'm now using file_exists, but I keep getting a parse error for the line containing the if statement. I've searched the archive and the syntax looks okay, can anyone see a problem?
$pathfile = "boat.jpg"
if (!file_exists($pathfile)) {
echo ("<IMG SRC=pics/nopic.jpg height=50 width=50></td>");
} else {
echo ("<IMG SRC=pics/river/boat.jpg Height=70 Width=70></td>");
};