name; try { $res = $department->add($data_id, $name); } catch (Exception $e) { echo $e->getMessage(); die(); } echo json_encode($res); ?>