It depends on how you write to your guestbook. If you print each post to a static HTML page, you'll probably need some complex pattern matching. And the result will probably still be prone to error. If you have each post stored in a database and generate the pages dynamically you could use the following to loop through a specific range of index numbers and retrieve only those posts instead of every post.
$page = int(abs $page || 1) - 1;
for ($page * $msgs_per_pg .. ($page + 1) * $msgs_per_pg - 1)
Last edited by jeffmott; 02-08-2003 at 12:19 PM.
for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
{for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";
Bookmarks