Search engine

i have a PHP script with a sql statement that accesses a database. this script will pull each record, however. If i wanted i could restrict the records to be pulled to let us state 20 per page.

now the question: i wish to create a “”click next” button so that the user can navigate to the next 20 then next 20 and so on. how can i go by doing that? if i had 1 million records, of course when the user runs the script he or she will see a large large page and will take time for dquery to run. what is the solution here?

of course i have a search engine, which will help search by certain criteria, but i wish the user to access the whole data as well.
Xizzi, thanks a lot, that should definitely help, up to the point. Good place to spend the weekend for me :-)
great answer.
Bernz, good points, thanks a lot.

didnt know dreamweaver could do that, seems like it is time for me that i used it.