PDO Pagination Function pagination operation using GOModel

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

  
                                $GOModel = new GOModel(); //create object of the GOModel class
                                /* create object of class */
                                $GOModel = new GOModel();

                                echo $GOModel->pagination( 1, 125, 10, 1);
                            

More Examples

 
                                //Example 1
                                 echo $GOModel->pagination( 1, 125, 10);

                            

Result/Output

Outputs pagination string