get row 1 codeigniter code example Example: get single row in codeigniter $query = $this->db->get(); $ret = $query->row(); return $ret->campaign_id;