This is my PHP code (currently commented out in my templates) which is used in the project mentioned here - http://www.daniweb.com/forums/thread251774.html
(a currently ongoing project):
<div class="indented searchFooter" style="border-top: 1px solid rgb(207, 214, 233);"><table summary="" class="stNoMargins" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="tinyText stNoMargins"><div class="btnContainer"><ul><li><a class="smBtnSel" href="tvguide.php?page=1">1</a></li><li><a class="smBtn" href="tvguide.php?page=2">2</a></li><li><a class="smBtn" href="tvguide.php?page=2" title="Next Page">Â»</a></li></ul></div></td><td class="smalltext"> Total <strong>»</strong> pages </td></tr></tbody></table> </div>
I am not sure how to get this working as a pagination script - I tried some scripts from Google but they didn't seem to work.
If I could work out how to get the above output to be auto-generated by PHP, that would be good, but since I'm not sure how to, any advice is appreciated, since I've tried my hand at pagination and it's still hard to learn!
Basically, I am trying to get it to have 20 records per page, so it may mean auto-generating 2 pages, or 3 pages, creating the following URLs (note: these are not "real" URLs, just Apache virtual hosts!):
and so on, where the query string and pagination will appear
(with the pagination in the footer!)