Am working on a php/mysql project that involves displaying long piece of text on a page. The text being that long, I would like a way of splitting up this article into multiple pages that will give my project the ease of navigating through.
Any help would be highly appreciated. Rgds.
Recommended Answers
Jump to PostIf the text is created in advance, why not convert it to PDF and let the adobe plug-in do the work? If the text is created dynamically you still have the option of creating a PDF from it (in PHP) and then display that.
If that doesn't do it …
Jump to PostI would personally make a break tag to insert into my posts and use explode to separate the pages:
<?php $page = $_GET['page']; //so the script knows what part of the post to display $page--; //decrement page since the array is zero indexed. $break = "[break]"; //whatever …
All 6 Replies
chrishea
182
Nearly a Posting Virtuoso
antiv_boy
0
Newbie Poster
xylude
3
Junior Poster
chrishea
182
Nearly a Posting Virtuoso
antiv_boy
0
Newbie Poster
antiv_boy
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.