How can I create an IF statement that looks for an image in a directory on the server....
I tried this:
<? if( '/var/www/html/mages/$first_part_of_photo/$row[Id]_2.jpg' != NULL ) { ?>
But...no go....how can I do this?
try usinf fopen() in the if statement instead of just the path to the image
ie if(fopen(/image_path))
reg kevin
or just use
$filename = "/var/www/html/mages/$first_part_of_photo/" . $row['Id'] . "_2.jpg"; if (is_file($filename)) { do something }