ckennerdale
Programmer
This may a bit hard to explain.
I have a database, which displays records on the page.
There are next and previous buttons which allow you to navidate through the records- which only display 5 records per page (or whatever I tell it to)
I have a serach box in a form which sends a variable $search to a mysql query and displays the results on another page.
On the resulkts page I also have a line above the results that says- "You searched for "$search." There are "$total " of results."
So that the user can see what they searched for as well as the total number of results.
So far so good. However when you hit "next" to see the next set of records $search does not appear in my sentance. The variable is lost somehow.
Any ideas? Caspar Kennerdale
Senior Media Developer
I have a database, which displays records on the page.
There are next and previous buttons which allow you to navidate through the records- which only display 5 records per page (or whatever I tell it to)
I have a serach box in a form which sends a variable $search to a mysql query and displays the results on another page.
On the resulkts page I also have a line above the results that says- "You searched for "$search." There are "$total " of results."
So that the user can see what they searched for as well as the total number of results.
So far so good. However when you hit "next" to see the next set of records $search does not appear in my sentance. The variable is lost somehow.
Any ideas? Caspar Kennerdale
Senior Media Developer