Welcome Guest, Not a member yet? Register   Sign In
Pagination Bug
#3

[eluser]Roosevelt![/eluser]
I typed the wrong code it is actually like this:

$config['base_url'] = site_url('products/browse/$category/page');
$config['total_rows'] = $TotalRows;
$config['per_page'] = $RowsPerPage;
$config['uri_segment'] = 5;

For testing purposes I set total_rows to 200, and per_page to 10, and removed the uri_segment config.

From what I figured out is that the page_num variable actually holds the offset value. But what I was doing is reassinging the offset again using the following math:

$offset = $pagenum * $rowsperpage.

So it was generating weird results :p.


Messages In This Thread
Pagination Bug - by El Forum - 06-29-2008, 05:39 AM
Pagination Bug - by El Forum - 06-29-2008, 03:37 PM
Pagination Bug - by El Forum - 07-01-2008, 03:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB