php pagination class with pagenumber shorter





just include your script
and set config
{
<?php
$pageconf = array(
'all'=>200 , // select count(*) from post where
'range'=>10 , // select * from post limit (inpage-1)*range,range
'inpage'=>$_GET['page'], // current page. example $_GET[]
'limit'=>3 , // use number of li for minimize
'url'=>'http://rezaworkshop.ir/pagination.php?page=' // url of page. the number showed in end of url
);

$pagenumber = new pagination($pageconf);

echo $pagenumber->pagenumber();
?>
}
http://rezaonline.net

Last edited Dec 5, 2012 at 4:24 PM by reza19sh, version 2