this is my favorite:
$page = $_GET["page"];
$page == "" ? $page = 1 : "";
$page_size = $page_data["data_1"];
$res = $pdo->query("SELECT * FROM `blog` ");
$row_count = $res->num_rows;
$page_num = ceil($row_count / $page_size);
$offset = ($page - 1) * $page_size;
SQL
LIMIT $offset, $page_size
HTML
<?="<div class="page-layout">"; for($i=1;$i<=$page_num;$iPP){?>
<button class="pageBtn" <?=$page==$i ? "disabled": "";?> onclick="location.href="?page=<?=$i;?>";"><?=$i;?></button>
<?} echo "</div>";?>
at present, there are 23 years in total, with a total of 10 years per week
, but I find that the score of https://airbnb.com is quite wonderful:
so I"d like to ask him how to write this chapter.