Skip to content
Adam Jimenez edited this page Jan 6, 2020 · 1 revision

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.`

Clone this wiki locally