Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lost variable

Status
Not open for further replies.

ckennerdale

Programmer
Dec 23, 2000
158
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top