i have a small question about pagination.
i developed a pagination algorithm on my own, without ever looking one up, but i am guessing mine is similar to othe peoples algorithm.
here is a link to my blog that has my paging algorithm somewhat explained.
the question i have has to do with the page numbers. the user can choose how many rows to display on a given page, and by doing so, i could easily tell how many pages there are going to be. the problem is, if the user views 30 rows a page, and there are 3000 results, then there are 100 pages, and i dont want to have to display all of those page numbers at the bottom. i would like to have a 1 2 3 4 .... 100 kind of thing going on, but im not quite sure how to do that. would the user have to click on the 4th page to get to page 6?
is there a standard way of doing this? im just curious. im sure i could develop an algorithm on my own, but before i spend the time to code it out, i was curious if anyone knows of a solution to this problem already.
thanks in advance.