Welcome Guest, Not a member yet? Register   Sign In
Output Count
#2

[eluser]mddd[/eluser]
When you want a count, you use count_all_results() INSTEAD of get(). Not after it. Like so:
Code:
$this->db->where( ..... ); // your selection here
$this->db->from('table');
$count = $this->db->count_all_results(); // this makes a query, counts the results and gives the number to you!


Messages In This Thread
Output Count - by El Forum - 08-24-2010, 11:46 PM
Output Count - by El Forum - 08-25-2010, 12:13 AM
Output Count - by El Forum - 08-25-2010, 11:40 PM
Output Count - by El Forum - 08-25-2010, 11:53 PM
Output Count - by El Forum - 08-26-2010, 09:00 AM
Output Count - by El Forum - 08-26-2010, 05:59 PM
Output Count - by El Forum - 08-27-2010, 12:40 AM
Output Count - by El Forum - 08-27-2010, 06:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB