Location: PHPKode > scripts > Pagination with density > example.php
<?php
require_once("pagination.php");
$url="example.com";
$total_rows=100;
$limit=10;
$example = new pagination($url,$total_rows,$limit);
$start_row=$example->getCurrentStartRecordNo(1); 
// to be used for sql query limit $start_row,$limit
$links = $example->displayPageLinks();
echo $links;
//this is the page links 
?>

Return current item: Pagination with density