Paginator.php 추가 <-- 쉽게 paginatrion 할수있게 도와주는 클라스
예제)

//include the class
include('paginator.php');
 
//create new object pass in number of pages and identifier
$pages = new Paginator('10','p');
 
//get number of total records
$stmt = $db->query('SELECT count(id) FROM table');
$row = $stmt->fetch(PDO::FETCH_NUM);
$total = $row[0];
 
//pass number of records to
$pages->set_total($total); 
 
$data = $db->query('SELECT * FROM table '.$pages->get_limit());
foreach($data as $row) {
    //display the records here
}
 
//create the page links
echo $pages->page_links();