Welcome Guest, Not a member yet? Register   Sign In
How can Do this in Pagination
#2

[eluser]exodus7[/eluser]
From what I can tell you should use
Code:
$this->db->get_where()
instead of:
Code:
$this->db->get()
This would allow you to include a where clause in your sql. So it would look something like this:
Code:
$query = $this->db->get_where('links', array('category' => 1), $num, $offset);

Let us know if this works Smile


Messages In This Thread
How can Do this in Pagination - by El Forum - 09-06-2008, 09:04 PM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:11 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:23 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:47 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:51 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 12:52 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:01 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:14 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:20 AM
How can Do this in Pagination - by El Forum - 09-07-2008, 01:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB