# Page pagination from an array

**URL:** <https://forum.kirupa.com/t/page-pagination-from-an-array/210806>\
**Category:** Uncategorized\
**Created:** [December 22, 2006, 10:04am UTC](https://forum.kirupa.com/t/page-pagination-from-an-array/210806 "2006-12-22T10:04:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 22, 2006, 10:04am UTC](https://forum.kirupa.com/t/page-pagination-from-an-array/210806/1 "2006-12-22T10:04:11Z")

</div>

Hello All

I have a 2 question.

i have my relational database set up and its running a treat.

Now when i call my sql i dump the results into an array so i can reuse that data on the same page.

I then use that array to display the pulled data onto that page.

1. How can i limit that pulled data to show one or how ever many i want?

2. I’ve looked at a few pagination codes and the all ask for the to use the sql i was wondering if it was possible to use this array instead to use a pagination on?

ok 3. If so any advice?
