prepare($db_query); // 此處僅有字串格式 $stmt->bind_param("i", ...[$_REQUEST["no"]]); $stmt->execute(); $result = $stmt->get_result(); $data = mysqli_fetch_assoc($result); $db_query = "SELECT accountid, name FROM account WHERE accounttype NOT IN ('A', 'X') AND department_id = ?"; $stmt = $link->prepare($db_query); // 此處僅有字串格式 $stmt->bind_param("i", ...[$data["responsibledepartment"]]); $stmt->execute(); $result = $stmt->get_result(); $opts = mysqli_fetch_all($result, MYSQLI_ASSOC); ?>