Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/06/2022 in all areas

  1. Not only not necessary but quite a bizarre combination. Do you want a horizontal menu bar or a card layout? Pick one.
    1 point
  2. Not unless you post the relevant code that's giving the problem
    1 point
  3. You are currently looping from 1 to $number_of_pages when displaying your page numbers. What you want to do is loop from $page - 2 to $page + 2, taking care not to go below 0 or above $number_of_pages in the process. Get your range of pages to loop over with some simple math and the help of the min/max functions then loop over that range. $start = max(1, $page - 2); $end = min($number_of_pages, $page + 2); for ($p=$start; $p<=$end; $p++){ //... }
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.