Welcome Guest, Not a member yet? Register   Sign In
Basic question about count_all_results()
#1

[eluser]Unknown[/eluser]
Hello everybody,

I have a simple question about the count_all_results method of Active Record. I have 2 entries in my table (returned by the following query):

Code:
$data['query'] = $this->db->get_where('produits', array('categories_id' => $this->uri->segment(3)));

And, when I put the total in the following variable:

Code:
$data['total'] = $this->db->count_all_results();

I'm always getting 1 instead of 2. Do you guys have an idea?

Thanks.


Messages In This Thread
Basic question about count_all_results() - by El Forum - 06-19-2009, 01:38 PM
Basic question about count_all_results() - by El Forum - 06-19-2009, 03:25 PM
Basic question about count_all_results() - by El Forum - 06-19-2009, 03:31 PM
Basic question about count_all_results() - by El Forum - 06-19-2009, 03:42 PM
Basic question about count_all_results() - by El Forum - 06-19-2009, 03:50 PM
Basic question about count_all_results() - by El Forum - 06-19-2009, 04:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB