I am trying to make a page with pagination of returned sql data.
But I need to keep the query parameter to get the search value.
for example. right now my page is site.com?s=term
when you click next 10 results, the code is using "<a href=" .$_SERVER['REQUEST_URI']."?page=$page\">Next 10 Records</a>"
I am running into a problem that there are now 2 question marks on my query parameter.
how do I have to set it up so the page with recognize, if there is a ? or not, to put it in, since not always will there be a query parameter.