$query = $this->db->get(); $data = array(); if($query !== FALSE && $query->num_rows() > 0){ foreach ($query->result_array() as $row) { $data[] = $row; } } return $data;
$query = $this->db->get(); $data = array(); if($query !== FALSE && $query->num_rows() > 0){ $data = $query->result_array(); } return $data;