Welcome Guest, Not a member yet? Register   Sign In
A Better and more Flexible Paging Solution for CI
#9

[eluser]xwero[/eluser]
A thought : why does the paging function need to know how many items the page has to contain? If it knows the number of pages instead of the total results it doesn't need to calculate the number of page.

In mysql this is, in the simplest form,
Code:
SELECT CEILING(COUNT(*)/?) page_count FROM table


Messages In This Thread
A Better and more Flexible Paging Solution for CI - by El Forum - 11-04-2007, 02:02 AM
A Better and more Flexible Paging Solution for CI - by El Forum - 11-04-2007, 01:25 PM
A Better and more Flexible Paging Solution for CI - by El Forum - 11-04-2007, 09:52 PM
A Better and more Flexible Paging Solution for CI - by El Forum - 11-04-2007, 11:15 PM
A Better and more Flexible Paging Solution for CI - by El Forum - 11-05-2007, 12:18 AM
A Better and more Flexible Paging Solution for CI - by El Forum - 11-25-2007, 08:39 AM
A Better and more Flexible Paging Solution for CI - by El Forum - 12-06-2008, 04:30 AM
A Better and more Flexible Paging Solution for CI - by El Forum - 12-28-2008, 09:26 PM
A Better and more Flexible Paging Solution for CI - by El Forum - 12-29-2008, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB