I'm creating a last.fm/ google maps mashup, plotting gig map markers for whatever city you search for.
A last.fm API response is like this:
<events location="New York" page="1" totalpages="105" total="1050">
<event>
<id>640418</id>
<title>Nikka Costa</title>
<artists> etc.
Currently, you can search for Edinburgh, for example - and it will bring back the first 10 gigs coming soon. I'm using PHP and simple XML to return the results.
I want to add pagination - so first 10 gigs would be page 1; I would like to have a list of other pages so that users can look forward for later gigs.
There are many useful resources out there for mysql/php pagination but not so much for dynamic PHP/XML and API. What would be the best way to approach this?