$id = $arrData['experience_id']; //date FROM and TO $arrData['experience_date_from'] = $objUtil->dateLocaleToDB($_POST['experience_date_from']); if (!empty($_POST['experience_date_to'])) { $arrData['experience_date_to'] = $objUtil->dateLocaleToDB($_POST['experience_date_to']); } if (empty($arrErrors)) { try { if (empty($arrData['experience_id'])) { //add $objExp->add($arrData); $action = "create"; $return = false; } else { //update $objExp->update($arrData); $action = "update"; } header('Location: view.php?module=' . $module . '&id=' . $id . '&action=' . $action); exit; } catch (Exception $e) { $arrErrors[] = $e->getMessage(); } } } // UPDATE : Get Data if (!empty($_GET['id'])) { $arrExperience = $objExp->getOne(array("experience_id" => $_GET['id'])); if (!empty($arrExperience)) { $arrExperienceTraduction = $objExp->getTraduction(array("experience_id" => $_GET['id'])); $arrData['experience'] = $arrExperience;