Wednesday 28 April 2010

Paging Data with CodeIgniter

I was looking into how one would page table data using CodeIgniter. So I didn't find one answer, but found a PHP answer and the CodeIgniter documentation to answer my own question.



The PHP technique is to add a LIMIT statement to your SQL request. So if you have a table size and a location, you can page through the data easily. The php-mysql-tutorial.com has the details here. Marry this to the CodeIgniter active record documentation, and that should be all I need.

No comments:

Post a Comment