A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: core/MY_Model.php
Line Number: 59
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 1
Filename: core/MY_Model.php
Line Number: 59
public function get_count($where = FALSE) {
if($where) {
$this->db->where_in($where[0], $where[1]);
return $this->db->get($this->table_name)->num_rows;
} else {
return $this->db->count_all($this->table_name);
}
}
public function get_count($where = FALSE) {
if($where && is_array($where)) {
$this->db->where_in($where);
return $this->db->get($this->table_name)->num_rows;
} else {
return $this->db->count_all($this->table_name);
}
}