<?php
include("../function/func.php");  // 假設你的deleteEquipmentInfo()函數定義在這個文件中

if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_REQUEST['id'])) {
    $id = $_REQUEST['id'];
    
    // 調用你的deleteEquipmentInfo函數
    $result = deleteEquipmentInfo($id);
    
    //根據你的函數結果回傳適當的響應
    echo 'success';
    
} else {
    echo 'invalid request';
}
?>
