Answers for "how to get count in codeigniter"

PHP
2

row count in codeigniter

$this->db->where('EmpID >=', 5);
$query = $this->db->get('Employees');
echo $query->num_rows();

// Outputs, 4
Posted by: Guest on December-27-2020
3

get result count codeigniter

public function record_count() {
   return $this->db->count_all("tablename");
}
Posted by: Guest on November-02-2020

Code answers related to "how to get count in codeigniter"

Browse Popular Code Answers by Language