Display in number of rows.

Hi, i need to know how to display for example 10 records in each page. for eg, i have 30 records, i want it to be in 3 pages and there will be a "next" button where i can go to the next page.
the codes i currently have is this: