Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]$this->db->count_all() in pagination issue
#1

[eluser]Marlbor0[/eluser]
Hello,
After some time spent on google i cant find the right way to do this, i have a custom sql select with joins to make a list of all my products, that select dont pick up products that dont have a manufacturer, so not all the records are taken from the db.

For the pagination, i need to set the max resuts so it can generate enought "pages" but with $this->db->count_all() i get all the data, i tried using $this->db->where() before counting the results but no go.

Is there a simple way, or right way to use pagination with custom query?


Messages In This Thread
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-24-2011, 08:49 AM
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-24-2011, 02:52 PM
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-24-2011, 02:56 PM
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-24-2011, 02:57 PM
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-25-2011, 11:39 AM
[SOLVED]$this->db->count_all() in pagination issue - by El Forum - 03-25-2011, 11:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB