I'm trying to get my single thumbnail image to link to a lightbox slideshow of additional hidden images. As it is right now, if I click on the thumbnail, it just brings up that image by itsself in lightbox. No links/slideshow to view the additional photos.

If I remove the <?php break ?> then all thumbnails display and lightbox works as expected (opens to large images & slideshow/back/next)However, I only want one thumbnail to show. Any advice?

Here's a link to my current working sample (still being styled so ignore that part). I've put the number of images that each listing contains in the title for reference.

Thanks so much for the help. I've worked for hours on this (definitely not an expert coder). I've tried a lot of variations but can't make it work correctly. The only browser error I'm getting is 500. However, I am getting 3 line code errors in dreamweaver... that to be honest, I don't know how to fix.

I know, stupid question, but the "php else" command is being used to eliminate the need for "php break", correct?

Hi, csdesign. I've done similar setups for image galleries. I merged your code and Tim's and added a semi-color or colon here/there and the errors appear to be eliminated in Dreamweaver. I've not tested this specific code, but you may wish to try it with your setup.

Thanks Deborah!!! Kinda funny because I just got it to work using this code but I'm going to try yours too because I have another one that was working a few years ago and now it's not. (was similar to this one I'm posting)

This is not entirely the same subject, but in the same area. I'm trying to add an uploaded image count. For instance, under each single image. I put an icon and text for more images but I would also like to show the image count (number of images uploaded for that record) next to it.