<? require_once("dbConnection.php"); require_once("paging.php"); $chk=db_Connect(); $sql="select * from xyz"; if(!$start) $start=10; $rs=mysql_query($sql); $pg=new Paging(); $pg->set_Start_Item($start); $pg->Total_Recs=mysql_num_rows($rs); $nav=$pg->Create_paging(); echo $nav; ?>