|
Run a query to find out how many rows there are (SELECT count(*) FROM table) and divide by the number of rows per page. Then add 1 to make the page numbers go from 1 to (n+1) instead of from 0 to n.
Print out the numbers as links using the loop of your choice (for, while, do-while).
__________________
596f75206d65616e20796f752063616e2061637475616c6c79 207265616420746869733f
|