文件名称:mysql-paging:一个用于 PHP 的简单 MySQL 分页器
文件大小:2KB
文件格式:ZIP
更新时间:2024-07-14 07:49:18
PHP
#mysql-分页用法 示例代码: // Include Library include('paging.php'); // Page number should be 1 indexed, not 0 indexed. $page_num = 1; // Set up Paginator $paginator = new Paginator(); $paginator->table_name = 'posts'; $paginator->rows_per_page = 5; // Get Page from table $page = $paginator->get_page($page_num); // Do something with the page while ($row = mysql_fetch_assoc($page)) { // Do stuff }
【文件预览】:
mysql-paging-master
----paging.php(2KB)
----README.md(440B)