I've not read your script...but if you want to hyperlink to that page, simply make the title of the result to be a link to that page.
How - Here's one way:
Maybe the pages' contents are dynamic because they all use one script whose HTML content changes. So maybe the url goes something like yourwebsite.com/index.php?id=2
Where 2 is the id of the game or whatever product it is.
So essentially, you also get the ID of the game/product from the database as you fetch other things. This makes the results easily dynamic.
Then do something like:
PHP Code:
while($r = mysqli_fetch_assoc(mysqli_query($link,"SELECT * FROM games WHERE game_name LIKE '%search_term%'")){
$id = $r['id'];
echo <<<CODE
<div>
<p><a href='mywebsite.com/index.php?id={$id}'The Title of The search results</a>
</p>
<p>
This is the newest game in the COD trilogy. The franchise has hit it perfect this time.
</p>
</div>
CODE;
}
Using the above or whatever variation you choose, makes the results dynamic and therefore the title hyperlink relevant to the page.
The <<< i used in the code is the
heredoc , that is if you didn't know about it.