View Full Version : Blob pagination with string separations?

04-30-2009, 09:39 PM
I'm wishing to build an engine that will allow me to take a blob field and separate it into fields, and be able to page through it. The text in the field can be unformatted or formatted html, but I simply wish to create a paging scheme that will separate the large string into pages that the user can click left or right on, to page through like a book (no special graphics). Can anyone point me into the right direction as to how this might be done?

Side note: it also cannot cut into words when making pages

I would appreciate any feedback on this :)

04-30-2009, 10:12 PM
where specific do you want to separate a blob???

lets say you have a book and you want to separate it into pages.
each page will contain 1000 chars.
you save the current page on GET
and with substr (http://il.php.net/manual/en/function.substr.php) you cut the matching 1000 chars per page.

just notice if it is a book, you probably don't want to cut the last\first word of the page..