I have two table as follow:
- tblSaler SalerID | SalerName | ----------------------| 1 | sothorn | ----------------------|
## try this ## $this->db->select($column_name); $this->db->where($column_name,$type); $q=$this->db->get($table_name); $count=$q->result(); return count($count);'