20.10.2022, 07:18
PHP-Code:
<?php
$result_db = mysqli_query($conn,"SELECT COUNT(ts_number.id_intern) FROM ts_number WHERE ts_number.id = 2");
$row_db = mysqli_fetch_row($result_db);
$total_records = $row_db[0];
$total_pages = ceil($total_records / $limit);
/* echo $total_pages; */
$pagLink = "<ul class='pagination'>";
for ($i=1; $i<=$total_pages; $i++) {
$pagLink .= "<li class='page-item'><a class='page-link' href='monitorOESoft_ioBroker.php?page=".$i."'>".$i."</a></li>";
}
echo $pagLink . "</ul>";
?>
Würde gerne die Anzahl der Button begrenzen (Anzahl = 5)
siehe : https://oesoft.de
Wie mache ich das?