Pagination for HTML articles (not items)
Posted: Wed Aug 11, 2004 9:39 am
I'm having trouble trying to figure out how to use pagination in a certain way. I understand the method if you are running a query or listing specific items in a database. What I don't understand is how you generate pagination when all you have is a single HTML file that you want to split up into separate pages.
So far when I look for answers on pagination all I can find is stuff related to LIMIT statement and using offsets.
Say the book war and peace was typed out into a single HTML page. How would I use PHP and MySQL to separate that HTML file into multiple pages?
I've thought about including page tags, such as having
{PAGE 1}
blah blah blah blah blah
{PAGE 2}
blah blah blah blah blah
But this would require the tags to be manually entered and edited in the pages. It'd be much more helpful if I had a way for a single script to separate the pages entirely on its own. So warandpeace.html could just be uploaded onto the server and when it is accessed the pages are automatically generated.
help? please?
So far when I look for answers on pagination all I can find is stuff related to LIMIT statement and using offsets.
Say the book war and peace was typed out into a single HTML page. How would I use PHP and MySQL to separate that HTML file into multiple pages?
I've thought about including page tags, such as having
{PAGE 1}
blah blah blah blah blah
{PAGE 2}
blah blah blah blah blah
But this would require the tags to be manually entered and edited in the pages. It'd be much more helpful if I had a way for a single script to separate the pages entirely on its own. So warandpeace.html could just be uploaded onto the server and when it is accessed the pages are automatically generated.
help? please?