# Applying pagination to results from a database

**URL:** <https://forum.getkirby.com/t/applying-pagination-to-results-from-a-database/27437>\
**Category:** Questions\
**Created:** [January 3, 2023, 5:24am UTC](https://forum.getkirby.com/t/applying-pagination-to-results-from-a-database/27437 "2023-01-03T05:24:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Milos2504](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Milos2504](https://forum.getkirby.com/u/Milos2504)\
**Post date:** [January 3, 2023, 11:58pm UTC](https://forum.getkirby.com/t/applying-pagination-to-results-from-a-database/27437/7 "2023-01-03T23:58:44Z")

</div>

dump poruke

```auto
Kirby\Toolkit\Collection Object
(
    [0] => 0
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
    [8] => 8
    [9] => 9
    [10] => 10
    [11] => 11
    [12] => 12
    [13] => 13
    [14] => 14
)
Kirby\Toolkit\Collection Object
(
    [0] => 0
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
    [8] => 8
    [9] => 9
    [10] => 10
    [11] => 11
    [12] => 12
    [13] => 13
    [14] => 14
)

```

dump pagination

```auto
Kirby\Toolkit\Pagination Object
(
    [page:protected] => 1
    [total:protected] => 30
    [limit:protected] => 15
    [propertyData:protected] => Array
        (
            [page] => 
            [total] => 30
            [limit] => 15
        )

)
Kirby\Toolkit\Pagination Object
(
    [page:protected] => 1
    [total:protected] => 30
    [limit:protected] => 15
    [propertyData:protected] => Array
        (
            [page] => 
            [total] => 30
            [limit] => 15
        )

)

```

Not sure why they both dump a double?!

---

_[View the full topic](https://forum.getkirby.com/t/applying-pagination-to-results-from-a-database/27437)._
