on the results page, create a link to the details page that passes the Primary Key ID column as a querystring:
<a href="detail.php?id=<?php echo $row_YourRecordset['IDColumn']; ?>">detail</a>
On the detail page, create a recordset.
In the filtering section, select the ID column
Set the Type to Querystring variable and enter "id" without quotes for the name.