$pagination = new pagination($paginate, $per_page, $total_count); $offset = $pagination->offset(); $comments = comment::paginate_comments($per_page, $offset); ?> <?php while ($comment = $dbo->fetch_assoc($comments)) { $author = utility::remove_escape($comment["author"]); $content = utility::remove_escape($comment["body"]); echo "<p><code><strong>{$author}</strong><br />"; echo " {$content} </code></p>"; } ?> <div id="pagination"><?php echo $pagination->built_pagination_links($paginate); ?> </div> <h3><?php echo session::message(); ?> </h3> <?php echo utility::display_comments_form(); ?> </div> <?php