thanks Jason
I have put that there but I am getting the error: Notice: Undefined variable: row_PageContents in C:\xampp\htdocs\lestudiom\interiors-results.php on line 12
Have attached the file so you cn see the RS.
Just to give you the overview, in the database, I have 2 tables product_contents and gallery
In the backend, when adding an entry to the product_contents you have the option of adding a gallery that is associated with that entry.
If the gallery is created it takes the ProductContentsID column from product_contents and appends it with "gallery_" and adds it to the column GalleryPage in the gallery table
So in the front end, my pages are interiors.php which displays a list of entries from the product_contents table which link, using mod_rewrite, to the interiors-results.php which displays the gallery images that are associated with the ProductContentsID column from the product_contents table
But on the results page (interiors-results.php) I am getting the above error
I hope that that makes sense.....
Jamie