You can add a query string to the url that is pointing to the detail page.
For example on your result page, the link on the name would be something like this:
<a href="product_detail.php?name=productname">productname</a>
So you will just need to update the link on the result page to add the "?name=productname" and then filter the record set on your detail page from the query string "name".
let me know if you have any other questions.