php - Next/Previous Page bug -


i need help, want make next / previous page have problems...

this php code, how try make it. problem doesn't show 3 data on first page , on next page puts same data again not other one.

code:

$statement = $connect->prepare("select count(*) anzahl `accounts`"); $statement->execute(); $row = $statement->fetch(); $max_data = $row['anzahl'];  $page = 1; if(isset($_get['page'])) {    $page = intval($_get['page']); }  $max_info = 3; $start = ($page - 1) * $max_info; $number_page = ceil($max_data / floatval($max_info));      for($a = 1; $a <= $anzahl_seiten; $a++) {    if($page == $a){       echo " <b>$a</b> ";    }     else {         echo " <a href='acp.php?page=list_all_player&seite=$a'>$a</a> ";    } 

}


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -