PHP Classes

File: example.php

Recommend this page to a friend!
  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: 12 years ago
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);