[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.