Log in

View Full Version : split posts into pages



auriaks
11-18-2009, 10:01 PM
hi,
I have guestbook with 45 comments. But they take a lot of space, so I want 30 of them split to other page. Is it possible in php, to automatically split comments when they are under 30?

Thanks :)

djr33
11-19-2009, 12:08 AM
The logic on this page should help you:
http://www.php-mysql-tutorial.com/wikis/php-tutorial/paging-using-php.aspx

That uses mysql, but the same ideas/operations will work for any storage system.