Page 1 of 1

add total number of page

Posted: Mon Jan 30, 2006 7:31 pm
by mayt
hi guys, im just a newbie in php, Im using a mySql database together with php to save records, If I add records I
want to display them in multiple pages like below,

Goto page 1, 2, 3 ... 1009, 1010, 1011 Next

how to query that? example I want all the new topics to be in the first page

example 1 of 5 as I add records the old records moves to another page?

thanks in advance

Posted: Mon Jan 30, 2006 7:36 pm
by raghavan20
search for pagination. If you want, you can have a look at this class which implements pagination.

Posted: Mon Jan 30, 2006 7:43 pm
by John Cartwright
I've written a pagination class found in the Code Snipplet forum, if your interested.

thanks

Posted: Mon Jan 30, 2006 10:10 pm
by mayt
thanks