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 regin  >  Regin's Pager  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of use
Class: Regin's Pager
Show MySQL query results split in multiple pages
Author: By
Last change: Copyright notice
Date: 7 years ago
Size: 404 bytes
 

Contents

Class file image Download
<?php
/*
Copyright Regin Gaarsmand ( http://www.sourcerally.net/regin )
Originally posted on: http://www.sourcerally.net/Scripts/17-Paging-with-PHP-and-MySQL
LGPL license
*/
Example of use:
$sql "SELECT * FROM tableName where 1";
$pager = new pager($sql,'page',15);
while(
$row mysql_fetch_array($dblister->result)
{
    echo 
$row['id']." ".$row['name']."<br>";
}
echo 
$pager->show();
?>