[eluser]Unknown[/eluser]
Hi everyone!
I have the following problem, which i could solve by a simple hack

, but i don't want to do it this way.
I'm building results for a complex search form, so after each active record where, in the end i am in the situation in which:
1) i need the count for all the results
2) i want to select only the current set (limit)
The problem is that, after $this->db->count_all_results(); the db object is reseted, so i would have to rebuild the query, which i don't like. (after that i add the limit and use $this->db->get() for the results).
Any suggestions?
Thanks!