PHP code example of mahmoud-abdelfadeil / php-pagination
1. Go to this page and download the library: Download mahmoud-abdelfadeil/php-pagination library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mahmoud-abdelfadeil / php-pagination example snippets
use PhpPagination\Pagination;
t",
"db_name"=>"pagination_test",
"db_user"=>"root",
"db_password"=>""
];
$pagination = new Pagination($config_db,2);
$users = $pagination->table('users')->column(['*'])->get();
echo "<pre>";
var_dump($users);