<?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();
?>
|