Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB