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 Drk alien  >  Pagination array return  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: How to use file
Class: Pagination array return
Calculate the pagination of listings
Author: By
Last change:
Date: 2013-03-23 09:17
Size: 296 bytes
 

Contents

Class file image Download
<?php
/**
 *$num_rows =  First make a query to get the number of the results
 */
$num_rows 50;
include(
'paginator.class.php');
$pages = new Paginator;

echo
'<pre/>';print_r$pages->getPaginateData($_GET['page'],$num_rows) );
echo 
$pages->displayHtmlPages($_GET['page'],$num_rows);