Splitting Article Into Multiple Pages
| From: | Alan McCoy | Date: | Thu, 20 Feb 2003 15:11:27 +0000 |
| Subject: | Splitting Article Into Multiple Pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136373@lists.php.net to get a copy of this message | ||
Greetings!
I have a MySQL database of essays that contain some pretty long articles.
I'm using PHP and instead of throwing all the text up on one mile-long page,
I'd like to be able to automagically break up the article among multiple
pages.
I had thought about using multiple text areas for breaking up the story when
it is published, but fear it may be a bit cumbersome for the writers. They
might be able to handle putting in a tag (like <pagebreak>) to signify page
breaks in the text if it's possible that PHP could spot the tags and split
it into separate pages accordingly.
Any thoughts on this (or where to find sample code to get me started) would
be greatly appreciated!
Thanks!
Alan