• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
count all result from a table using where clause

#1
[eluser]ibnclaudius[/eluser]
I know how to do it using num_rows(), but how can I do this using count_all()?

I tried this, but no success:

Code:
public function count_school_update_comments($update_id)
{
  $query = $this->db->count_all($this->school_updates_comments_table)
    ->where("update_id", $update_id);

  return $query;
}


Messages In This Thread
count all result from a table using where clause - by El Forum - 02-24-2012, 02:06 PM
count all result from a table using where clause - by El Forum - 02-24-2012, 03:56 PM
count all result from a table using where clause - by El Forum - 02-24-2012, 04:34 PM
count all result from a table using where clause - by El Forum - 02-24-2012, 09:19 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.