Paging through hundreds of entries
Archive - Originally posted on "The Horse's Mouth" - 2006-11-05 18:24:55 - Graham EllisI can display all the entries in a table on a single page if there are 10 or 20 of them. When I get up to about 30 or 40 entries, it's getting out of hand ... and with hundreds of entries, I REALLY need a paging system.
Quite commonly, I see requests for "paging systems" to meet such requirements and, not having written any new PHP for a few days, I though I would see how compact and explainable an example I could come up with. Well - 43 lines, 1300 bytes including the HTML!
Source code - here and code in operation here. Now I just need to add a title search capability! Ah - perhaps this will do the trick .... wanna see the source?