How do i get php, if it reads the number of rows from a database, to create a list of page numbers, eg
Page: 1 2 3 4 5
If i set a limit of how many rows are displayed per page, how can this be done,
so if the limit is set to 10, on page 1 i get the first 10 rows, on page two I get the next 10 and so, i cant get php to calculate the number of pages it would take.
thanks