I am making a search engine for my site, and have a few questions first how do I print how many querys were used and how long it took to generate the page? and second how can I limit results per page from $resultsperpage and have at the bottom a link from page 1 to whatever. but only print the right amount of pages so if I had say 7 results returned it would put no link the bottom if I had 27 results it would say go to page 1, 2 , 3 you are currently on page 2 of 3 I release it is a series of IFs but I don't know how to do the pages at the bottom
so here is a sample of what the page would look like
Welcome to the R2 search.
You search for "foo" with 5 results per page
Showing 1 to 5 of 10 results
Results:
1. Foo
desc
2. Foo
desc
3. Foo
desc
4. Foo
desc
5. Foo
desc
go to page 1, 2 you are currently on page 1 of 2