substr() Split record into seaprate pages

From: Date: Fri, 08 Feb 2002 03:34:35 +0000
Subject: substr() Split record into seaprate pages
Groups: php.db 
Request: Send a blank email to php-db+get-16654@lists.php.net to get a copy of this message
Does anyone know how to limit a long record, like a news article that has 5 > pages? > I want to limit it so it displays the first page then at the bottom it > prints: > > <<1 2 3 4 5 6 7>> > > then when you click 2 or the right arrow it displays the second page of > the record? I have been trying to use the following script but I can't get it to work: echo(substr($article, ($i - 1) * $pagesize, $pagesize); for ($i = 1; $i < strlen($article) / $pagesize; $i++) echo("<a href='thispage?page=$i'>"); > > Thanks > > --Will

« previous php.db (#16654) next »