id; $person_id = $data->person_id; $start = $data->start; $end = $data->end; try { $person_illnes->update($data_id, $id, $person_id, $start, $end); } catch (Exception $e) { error_log($e->getMessage()); die(); } echo json_encode($id); ?>