exit; } if ($_POST['action'] == 'save_education') { if (!isset($_POST['education']) || !isset($_POST['country']) || !isset($_POST['completed_on']) || !isset($_POST['qualification']) || !isset($_POST['institution'])) { echo "ko"; exit; } $resume = new Resume($_POST['member'], $_POST['id']); $data = array(); $data['id'] = $_POST['education']; $data['country'] = $_POST['country']; $data['qualification'] = $_POST['qualification']; $data['institution'] = $_POST['institution']; $data['completed_on'] = $_POST['completed_on']; if ($_POST['education'] == "0") { if (!$resume->create_education($data)) { echo "ko"; exit; } } else { if (!$resume->update_education($data)) { echo "ko"; exit; } } echo "ok"; exit; } if ($_POST['action'] == 'get_skills') { $resume = new Resume($_POST['member'], $_POST['id']); $educations = $resume->get_skills();