From 3153ca231685de8ea367ca2d70fded0f9e66e2e2 Mon Sep 17 00:00:00 2001 From: jakani24 Date: Thu, 20 Jun 2024 16:24:49 +0200 Subject: [PATCH] Update manage_incident.php --- .../cyberhex-code/system/secure_zone/php/manage_incident.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php index cce66b6..339c5fc 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php +++ b/src/server/cyberhex-code/system/secure_zone/php/manage_incident.php @@ -32,6 +32,7 @@ if(isset($_GET["add_todolist"])){ $name=htmlspecialchars($_POST["name"]); $incident_id=htmlspecialchars($_GET["incident_id"]); $sql="INSERT INTO todo_lists (name,belongs_to_incident) VALUES(?,?)"; + $stmt = $conn->prepare($sql); $stmt->bind_param("si", $name,$incident_id); $name=htmlspecialchars($_POST["name"]); $incident_id=htmlspecialchars($_GET["incident_id"]);