Welcome Guest, Not a member yet? Register   Sign In
Pagination using two functions, is it possible just to get it down to one?
#3

[eluser]n0xie[/eluser]
[quote author="Jareish" date="1290711958"]Your $data['records'] is an array. And like any array in php, you can count the number of objects in it using count();

Think $numrows = count($data['records']); should do it[/quote]
No. that would just count your 'per_page' number.

You can't do it without using 2 queries afaik.


Messages In This Thread
Pagination using two functions, is it possible just to get it down to one? - by El Forum - 11-25-2010, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB