How do I alter the "numbers" for Page Pagination
Hi, and thanks so much for the wonderful tutorial on Pagination. Other than being a very clear and simple titorial, it has taught me a lot. Thank You.
I have used this code on a site I have built for a local football club and it works wonderfully in all cases. There is one instance where I would like to replace the "page numbers" with other text. To explain a little better. I have done a set of "Petty Cash" records, one page for each month of any given year. There can only ever be 12 in any year (jan, feb, march, apr, ..... etc) At the moment they are numbered "1" "2" "3" ..... etc and it works fine, but would be much more clear to the user if, instead of reading "Page : 1 2 3 4 5 6 7 8 9 10 11 12 It read Month : Jan Feb Mar Apr May Jun Jul Aug Sept Oct Nov Dec My Question? Is there any way to replace "1" "2" "3" "4" with "Jan" "Feb" "March" "Apr" "May" ...... etc If not then they will just have to live with counting the months on their fingers (and toes) Anyway, thanks again for not just the wonderful and simply explained code, but for the great tutorial Adrian |
© Advanced Web Core. All rights reserved
use array and keys
May 12, 2012