db->get_where($table, $where)->num_rows(); } public function data_login($table, $where) { return $this->db->get_where($table, $where)->row_array(); } }