Monday, January 6, 2014

Get number of returned rows in Active Record

$this->db->from('yourtable');
[... more active record code ...]
$query = $this->db->get();
$rowcount = $query->num_rows();

No comments:

Post a Comment