• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.