PHP简单分页
$total_records = 100;
$page_size = 5;
pagenum=ceil(page_num=ceil(pagenum=ceil(total_records / $page_size);
pagebegin=(page_begin =(pagebegin=(current_page - 1) * $page_size
$sql = sprinft(‘SELECT * FROM tb_name LIMIT %s, %s’, $page_begin, $pa)
原创
2021-07-08 22:50:31 ·
165 阅读 ·
0 评论