รายละเอียดของการตอบ ::
//Update Items
if(isset($_POST['update_item'])){
$edit_item_id = $_POST['edit_item_id'];
$edit_dep_id = $_POST['edit_dep_id'];
$department_name = $_POST['department_name'];
$section_name = $_POST['section_name'];
$phone = $_POST['phone'];
$building_name = $_POST['building_name'];
$floor = $_POST['floor'];
$sql = "update department as d, section as s
set d.department_name = '$department_name'
where d.department_id='$edit_item_id'
and s.section_id='$edit_dep_id'
and s.department_id = d.department_id