Home >Backend Development >PHP Tutorial >Example_PHP Tutorial

Example_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:12:30851browse

//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();
?>



    
        
    
    
        
        
        
    
    
        
    

       显示 [ - ] 条记录,共_totalItems?>条记录

       
        
 

       
<?print_r($data)?>

        


    

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, $...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn