If you use the Data Assist Wizard to create your pages, you can select to create a Search, Results and Details page set.
on the results page, there will be a link to the details page, this link will pass the ID of the thumbnail using a querystring variable:
details.php?id=3
on the details page, a recordset is created to filter the id column on the id querystring variable from the link, this recordset is used to lookup the info for the selected thumbnail.
Use the DataAssist wizard to create a new set of Search, Results and Details pages (Make sure the page names created are unique so it wont overwrite the existing ones), you can use these pages as a guide to see how this is accomplished to add this to your existing results page.