How can I organise my data from a total amount into tens?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How can I organise my data from a total amount into tens?

So, say I have a total amount of something like: 50

I want to organise this so it organises each into 10's

like this:

PAGE 1 (01 - 10) | PAGE 2 (11 - 20) | PAGE 3 (21 - 30) | PAGE 4 (31 - 40) | PAGE 5 (41-50) ...

I basically want to use this function for a guestbook I made,

I want to organise each post into 10s, so you can click a link and it will select the posts from that group.

I can get it to select from the group, but what I really want is how to get it do, is how to do the link part:

"PAGE 1 (01 - 10) | PAGE 2 (11 - 20) | PAGE 3 (21 - 30) | PAGE 4 (31 - 40) | PAGE 5 (41-50) ..."

So it groups them into 10s so they count up to the total amount...

If you need me to explain it more please do say :)

Thanks,
Dan

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux