I was just wondering is there any way in which i can add a the image spacer.gif if the row brought back by the database only contains numbers as the file name.
You could probably use the function is_numeric() , then depending on true or false, print the spacer image.
if (is_numeric($filename)) { echo "<img src=spacer.gif>\n"; } else { // filename is not numeric }
Cgraz