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 solomongaby  >  gsdPagination  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: gsdPagination
Show links to browse MySQL query result listings
Author: By
Last change:
Date: 6 years ago
Size: 330 bytes
 

Contents

Class file image Download
<?php
include_once "./pagination.class.php";

$cPage = ( isset($_REQUEST['cPage']) ) ? $_REQUEST['cPage'] : '1';        $sql="SELECT * FROM `tableName` ";
$baseURL='index.php?var=2';

// get the HTML paginatio ...
$pagination= new gsdPagination($sql,$cPage,'5',$baseURL);    

// get the query
$query $pagination->rQuery;

?>