From bc1429ed16a7ef4b7f94aeabaca97b53c4927ba4 Mon Sep 17 00:00:00 2001 From: kishor10d Date: Thu, 4 Jan 2018 11:30:23 +0530 Subject: [PATCH] num_rows() returns count --- application/models/user_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/user_model.php b/application/models/user_model.php index 3f5caecc..3629a334 100644 --- a/application/models/user_model.php +++ b/application/models/user_model.php @@ -22,7 +22,7 @@ function userListingCount($searchText = '') $this->db->where('BaseTbl.roleId !=', 1); $query = $this->db->get(); - return count($query->result()); + return $query->num_rows(); } /**