$query = $this->db->query("SELECT * FROM date_data ORDER BY id DESC LIMIT 1"); $result = $query->result_array(); return $result;