PHP код:
<?php
$maxlen = 10;
$page = isset($_GET['page'])?$_GET['page']:1;
$page_beginning = $maxlen * $page;
$page_end = $page_beginning + $maxlen + 50;
mysql_connect(...);
$q = mysql_fetch_assoc(mysql_query("SELECT SUBSTR(text, $page_beginning, $page_end) AS txt FROM books WHERE id = 1;");
$page_text = $q['txt'];
$page_length = $page_end - $page_beginning;
$char = $page_text[$page_length-1];
$cut_length = $page_length - 1;
while($char!=" " && ($cut_length - $page_len) != 50){
$length += 1;
$char = $page_text[$length];
}
$dsp_text = substr($page_text, $page_beginning, $cut_length);
echo $dsp_text;
?>
Вот так быстрее, только бы паджинатор еще бы прикрутить....