On the results page, create the link to the detail page to pass the query string variable:
Add the menu.php code attach the menu php code on the detail page
<?php require_once("menu.php"); ?>
this really should be all that is required.
Remember that PHP is case sensitive, refer the query string using the proper case.
is not the same as :