Hi guys.
I already know how to set up a pagination script.
But I only know how to use a simple < previous | next > pagination script.
What I want to be able to do is set up a pagination script which gives a string of numbers. e.g - [1-2-3-4-5-6-7-8-9-10],,,, rather than the simple < previous | next > links.
I want each of these numbers [1-2-3-4-5-6-7-8-9-10] to link to and fetch 10 rows from the database when clicked.
The thing is, I don't know where to start and what functions would come in handy to make this work?
Obviously I would need to set up a class (I imagine).
I guess what I am trying to say is that fetching the rows from the database would not be a problem. I can do this but the one and only thing I am struggling to find an answer to is how I would automatically generate the additional numbers to the pagination script? For example, if there is 35 rows in the database, the pagination would only display [1-2-3-4]
How do I get this type of effect?
Paul.