Welcome Guest, Not a member yet? Register   Sign In
Problems with querys
#1

[eluser]mikeyhell[/eluser]
I'm trying to write an app that returns the previous and next rows based on what the current query is and it's not working? The way I understand it, if you return a query w/ the row #4 the next row would be #5 and previous would be #3. Instead I get the same row returned for all 3.

$this->db->where('id', $id);
$query= $this->db->get('entries');
$data['next']= $query->next_row();
$data['last']= $query->previous_row();

??


Messages In This Thread
Problems with querys - by El Forum - 03-05-2008, 05:02 PM
Problems with querys - by El Forum - 03-05-2008, 05:09 PM
Problems with querys - by El Forum - 03-05-2008, 05:21 PM
Problems with querys - by El Forum - 03-05-2008, 05:25 PM
Problems with querys - by El Forum - 03-05-2008, 05:29 PM
Problems with querys - by El Forum - 03-05-2008, 05:34 PM
Problems with querys - by El Forum - 03-05-2008, 05:35 PM
Problems with querys - by El Forum - 03-05-2008, 05:43 PM
Problems with querys - by El Forum - 03-05-2008, 06:41 PM
Problems with querys - by El Forum - 03-05-2008, 06:59 PM
Problems with querys - by El Forum - 04-04-2008, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB