管理人員。 原本是 'B' $sql = "select accountid, name from account where accounttype = 'B' and accountid not in ('B000000001', 'M0008') order by accountid"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_row($res)) { $repairer_arr[$row[0]] = $row[1]; } mysqli_free_result($res); // 備品項目 $item_arr = []; $sql = "SELECT * FROM supplies WHERE ver = '20231103'"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_assoc($res)) { $item_arr[$row["id"]]["title"] = $row["title"]; $item_arr[$row["id"]]["stype"] = $row["stype"]; $item_arr[$row["id"]]["unit"] = $row["unit"]; $item_arr[$row["id"]]["price"] = $row["price"]; $item_arr[$row["id"]]["memo"] = $row["memo"]; } mysqli_free_result($res); $item_str = '
序號 | 名稱 | 類別 | 單位 | 售價 | 備註 |
---|---|---|---|---|---|
" . $k . " | "; $item_str .= "" . $v["title"] . " | "; $item_str .= "" . $v["stype"] . " | "; $item_str .= "" . $v["unit"] . " | "; $item_str .= "" . number_format($v["price"]) . " | "; $item_str .= "" . $v["memo"] . " | "; $item_str .= "
Record has added successfully
"; } } */ ?>