$table_name="tiopic";//Einstellung des Tabellennamens abfragen $perpage=5;//Anzahl der auf jeder Seite angezeigten Daten//Maximale Anzahl der Seiten und Gesamtzahl der Datensätze$total_sql="select count(*) from $ table_name ";$total_result =mysqli_query($conn,$total_sql);$total_row=mysqli_fetch_row($total_result);$total = $total_row[0];//Ermitteln Sie die maximale Anzahl von Seiten $total_page = ceil($total/$ perpage); //Aufwärts-Ganzzahl //Kritischer Punkt $page=$page>$total_page ? $total_page:$page;//Situation, wenn die nächste Seitenzahl größer als die maximale Seitenzahl ist //Paging-Einstellungsinitialisierung $start=( $page-1) *$perpage;$sql="select * from tiopic order by id desc limit $start ,$perpage";$que=mysqli_query($conn,$sql);$sum=mysqli_num_rows($que);