From d8559781298b5951cefdc81b5acb5d96b9a1857a Mon Sep 17 00:00:00 2001 From: moozee-gh <33274712+moozee-gh@users.noreply.github.com> Date: Mon, 18 Dec 2023 09:34:42 +0800 Subject: [PATCH] Update dispatcher.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $sql = "INSERT INTO ".$table." (setid, destination, socket, state, weight, attrs, probe_mode, description) VALUES ". "(?, ?, ?, ?, ?, ?, ?)"; ?问号占位符比字段少了个一个 --- web/tools/system/dispatcher/dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tools/system/dispatcher/dispatcher.php b/web/tools/system/dispatcher/dispatcher.php index 871da700..580f53b1 100755 --- a/web/tools/system/dispatcher/dispatcher.php +++ b/web/tools/system/dispatcher/dispatcher.php @@ -87,7 +87,7 @@ $description = $_POST['description']; $sql = "INSERT INTO ".$table." (setid, destination, socket, state, weight, attrs, probe_mode, description) VALUES ". - "(?, ?, ?, ?, ?, ?, ?)"; + "(?, ?, ?, ?, ?, ?, ?, ?)"; $stm = $link->prepare($sql); if ($stm === false) {