Hi,
I am trying to create a search feature my website. I worked on the query and an results page first and everything works OK, thanks to the help I received from this forum to fix the paging problem.
As soon and I introduced a form into the scenarion things have gone pear shaped.
I enter a search term and submit.
the search term is passed to my results page and the first 10 rows are returned along with a NEXT>> link.
So far so good 🙂
When I click on the next link, the next page returns no results. Even though I know there are 60 rows to return.
The query is:
$query = "SELECT * FROM $dbtable where station like '$search' limit $offset, $limit";
It seem as though the search variable isnt being passed to the next page, So fails to return the next rows.
how can I pass the variable to the next page?
Thanks