Description
Pagination function allows to generate pagination string
Function Defination
void function pagination($page = 1, $totalrecords, $limit = 10, $adjacents = 1);
Parameters Details
| Details | Type | Example |
|---|---|---|
| $page - current page | int | page no like 2,4 |
| $totalrecords - total records generated | int | total records e.g. 192 |
| $limit - per page records | int | per page records e.g. 10 |
| $adjacents - no of adjacent link shown | int | 1 |
Examples
$pdomodel = new PDOModel(); //create object of the PDOModel class
/* create object of class */
$pdomodel = new PDOModel();
echo $pdomodel->pagination( 1, 125, 10, 1);
More Examples
//Example 1
echo $pdomodel->pagination( 1, 125, 10);
Result/Output
Outputs pagination string