Forums

PHP

This topic is locked

Split a large page

Posted 02 Apr 2004 04:00:12
1
has voted
02 Apr 2004 04:00:12 Dane Taylor posted:
Is there any small code to split a large document returned from a record set. and return the page views

Replies

Replied 03 Apr 2004 21:46:18
03 Apr 2004 21:46:18 Phil Shevlin replied:
do you mean

split the contents of one large field from the database?
or
split a long recordset containing many records?
Replied 04 Apr 2004 20:53:58
04 Apr 2004 20:53:58 Dane Taylor replied:
Split a large field in the database.

Say I hada document that is way too long to scroll I would like to split it to have many pages. Then print it all out as one document.
Replied 05 Apr 2004 00:52:04
05 Apr 2004 00:52:04 Phil Shevlin replied:
You'd still have to pull the entire thing over to a recordset, but you could plit the field into an array - then "page" thru that array.

Look into str_word_count - www.phpbuilder.com/manual/function.str-word-count.php

Reply to this topic