That's odd, I guess I didn't type it in, but the code does echo it out to show an image, but just does not display any of the next or previous links to the next one.
Basically, I have one table containing about 600 images or actually the links to the image. There are 5 categories, so my table basically looks like this:
imgid, catid, img_name, img_url, thumb_url, hits
So basically I need it to know which catid it should be looking at and then start the images that contain that catid only. I think I'm explaining it clearly, I think. 😕