a related problem...
Thanks to your assistance I've got the page working fine, but have now hit another snag and wondered if you could point me in the right direction?
On the detail page there is an image which corresponds to image1 in the database, then below it the remainder of the images repeat as smaller thumbnails. Ideally what I want is for the user to be able to click on image2, image3 etc and have a larger version of that image appear in the space that image1 occupies, but I have no idea how to achieve this. I assume that it would be a javascript-driven disjointed rollover of some sort, with an onClick rather than a hover function, but I'm not sure how this would incorporate the code that you gave me:
<td>
<?php if(($row_DetailRS1['photo6'] != NULL) && ($row_DetailRS1['photo6'] != "")) { ?>
<a href="<?php echo $row_DetailRS1['photo6']; ?>" target="_blank"><img src="<?php echo $row_DetailRS1['photo6']; ?>" width="100" height="100" border="0" /></a>
<?php } else { echo " "; } ?>
</td>
Any help gratefully received...