1. Count the total guestbook entries
2. Count the number of pages, based on $count_total / $count_per_page -> result ==> $page_count
3. When doing query to database (which I assume is where you store the data), set the limit to $count_per_page, starting from $page_count * $count_per_page
4. Display the results
5. Display the page numbers at the bottom
hope it makes sense