External content pagination


I am trying to display some content from an external db into a table displayed through a xenforo page. So far I have followed this guide: http://xenforo.com/community/thread...ent-db-and-display-them-in-a-page-node.42311/ to enable me to grab the content from the database.

I am wanting to limit the amount of results in this table to 10 per page. I found this: http://xenforo.com/community/thread...er-custom-fields-on-a-page.33744/#post-384482 which looks at some pagination but rather than displaying results based on a variable (such as userid) I am just wanting to split the table into pages, with 10 results on each page.

Anyone know how this is possible?