} */ if (empty($date)) { $valid = false; } // update data if ($valid) { $sql = "interviewUpdate"; $sqlValuesForUpdate = array($traineeid, $assistedby, $clientid, $interviewer, $time, $status, $updatedDate, $description, $date, $id); GlobalCrud::update($sql, $sqlValuesForUpdate); header("Location:../?content=22"); } } else { $sql = "interviewSelectById"; $sqlValues = array($id); $data = GlobalCrud::selectById($sql, $sqlValues); $traineeid = $data['trainee_id']; $assistedby = $data['assisted_by']; $clientid = $data['client_id']; $interviewer = $data['interviewer']; $time = $data['time']; $status = $data['status']; //$created_date = $data['created_date']; //$updated_date = $data['updated_date']; $description = $data['description']; $date = $data['date']; } ?> <!DOCTYPE html>