欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

示例_PHP教程

程序员文章站 2022-05-24 14:49:56
...
//if(!$pageID)$pageID=1;
include('Pager.php');
$params['itemData'] = range(1, 180);
$pager =& new Pager($params);
$data = $pager->getPageData();
$links = $pager->getLinks(">");
list($from, $to) = $pager->getOffsetByPageId();
?>















显示 [=$from?> - =$to?>] 条记录,共=$pager->_totalItems?>条记录

=$links['pages']?>
=$links['back']?> =$links['next']?>





www.bkjia.comtruehttp://www.bkjia.com/PHPjc/629395.htmlTechArticle?php //if(!$pageID)$pageID=1; include('Pager.php'); $params['itemData'] = range(1, 180); $pager = $data= $pager-getPageData(); $links = $pager-getLinks(上页,下页); list($from, $...