At 10:38 AM 7/8/01 -0800, Chris Lott wrote:
>What kind of methods have any of you used for storing text that needs to be
>displayed as both multi-page (for reading) and single-page (for printing)?
>My plan is to store the articles with basic HTML formatting that will render
>based on the site stylesheet(s).
>
>I'm using MySQL.
>
>My main question is how to deal with the multiple pages. Higher-ups would
>prefer that article authors not have to split the file into various fields
>when composing. My idea is to have the authors insert a code/comment that
>indicates a page break in the text (something like, cryptically,
><PAGEBREAK>) and then when pulling the article from the DB, create a menu
>for selecting pages (there has to be a small menu at the bottom of each
>article with a link to each article page and an indication where the user
>is), display the proper page, etc.
>
>I've still not got my head completely around how I am going to do this, so I
>am looking for suggestions on how other sites manage this need.

Why not just split on the newlines?  You could conceivably, say that you 
will limit yourself to 5 newlines (paragraphs) per page.  T


John Meyer
[EMAIL PROTECTED]
Programmer


If we didn't have Microsoft, we'd have to blame ourselves for all of our 
programs crashing


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to