Код: Выделить всё
$this->db->select('*');
$this->db->from('cms_users');
$this->db->where('username', "admin");
$this->db->where('password', "admin01");
$query = $this->db->get();
echo $query->num_rows();
exit;
Подробнее здесь: https://stackoverflow.com/questions/331 ... o-callsite
Мобильная версия