Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of vimal  >  Pagination with density  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Pagination with density
Display links to browse listings split in pages
Author: By
Last change:
Date: 2010-10-20 04:04
Size: 322 bytes
 

Contents

Class file image Download
<?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 
?>