I'm not sure the best way to auto-paginated long articles that will be
stored in a MySQL database. I tried searching a few sites for sample code
but couldn't really find anything, which is why I'm asking here.

An idea I had was to split the content into an array called "page" and then
just access each page with "echo $page[2];" My only concern is any potential
overhead if the articles are long (maybe about 10-15 pages). Also, would the
best way to split the content into pages be to use one of the string parsing
commands that looks for the next "\n\n" (a new paragraph)? I'm new to PHP,
so, not sure yet which command would be the best for this.

Any advice or pointers on how to best do this is appreciated!

Thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to