[eluser]artur z[/eluser]
[quote author="tonanbarbarian" date="1201574050"]Is the record with id 43 displayed on one of the other pages? I am guessing that it is.
The issue here is that you are not specifying any ordering
Assuming you are using MySQL then the ordering may change each time you update the table because of the way that MySQL stores its data.
If you do not enter any ordering then MySQL just grabs it from the order in the table.
Pretty sure that is what is happening here
If you want it in ID order then tell it that and I am sure you will find 43 on page 2 as expected[/quote]
Quick and dirty… I usually order my results in some way, but it doesn't solve the issue here.
I'm still missing one record, it looks like something's wrong with my offset?
Code:
/* Order by id ASC */
$this->db->orderby('id', 'desc');
/* Run query */
$data['query'] = $this->db->get('receipts', $config['per_page'], $this->uri->segment(3, 0));