• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

[Code] Need help for Pagination

skypeleft

Active member
Aug 10, 2019
411
77
28
Hi all pro coder, I'm not a coder, I have a link manager page, with pagination with the problem: more than 24 pages but it's not showing for me.
I mean I want the page number to be collapsed. Next does not appear for me, pages after 24 are overflowing. Please see the picture I attached, please help.

Code:
 <!-- Pagination -->
        <nav aria-label="Page navigation example mt-5">
            <ul class="pagination content-center">
                <li class="page-item <?php if($page <= 1){ echo 'disabled'; } ?>">
                    <a class="page-link"
                        href="<?php if($page <= 1){ echo '#'; } else { echo "?page=" . $prev. $linksearch ; } ?>">Previous</a>
                </li>

                <?php for($i = 1; $i <= $totoalPages; $i++ ): ?>
                <li class="page-item <?php if($page == $i) {echo 'active'; } ?>">
                    <a class="page-link" href="link.php?page=<?= $i. $linksearch ; ?>"> <?= $i; ?> </a>
                </li>
                <?php endfor; ?>

                <li class="page-item <?php if($page >= $totoalPages) { echo 'disabled'; } ?>">
                    <a class="page-link"
                        href="<?php if($page >= $totoalPages){ echo '#'; } else {echo "?page=". $next. $linksearch ; } ?>">Next</a>
                </li>
            </ul>
        </nav>
             </div>
            </div>
          </div>

2022-05-14 09_38_57-Admin.png
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock