Hello, I am working on a program that searches a database that contains some information on cars. I have the program preatty much finished except I am running into a problem with the search part of it.

The problem I am having is only ouputing 10 results per page or so then having the Previous and Next links at the bottom of the search results.

I can get it to print the results out to the page for viewing and get the the Previous and Next links to print however it prints all the matches on one page not to different pages for the links.

I have looked and studied the How to section where there was an article on it but still cannot seem to bet it to work properly. Here is the code I am using.