I'd like to know is there a function that reads the url from the browser after that running a code; for example I've this php code:
echo "<a href='mypage.php?product=123456'>Search Result</a>";
when hovering on the link the url should be like this:
http://yourdomain.com/mypage.php?product=123456
I want to retrieve data from the database of the search result that have a row contains:
123456
but let me explain to you; let's say those are the search results
- 1
- 2
- 3
- 4
- 5
when hovering on the first result the url in the browser will be like this:
http://www.yourdomain.com/mypage.php?product=1
I want to display all the data from the table that have a row which contains "1" by clicking on the result
thanks for helping me.