|
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).
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
|