Paging Class

Pagination class

Example
$query="SELECT * FROM table";
$p = new paging( $query );

get_paging

string $p->get_paging();

Returns HTML of pagination links.

query

$p->query

Contains the the mysql query with appended limit statement.

get_results

string $p->get_results( bool $links=false );

Returns HTML displaying number of results. If $links is set to true then pagination links will also be included.