updating incidents

This commit is contained in:
jakani24
2024-06-25 20:31:15 +02:00
parent c8db09ffcf
commit 5fa805e0ac
3 changed files with 21 additions and 9 deletions

View File

@@ -61,8 +61,9 @@ include "../../../api/php/log/add_server_entry.php"; //to log things
$success=0;
die("Connection failed: " . $conn->connect_error);
}
$stmt = $conn->prepare("INSERT INTO incidents (description, status) VALUES (?, 'open')");
$stmt->bind_param("s", $keyword);
$date=date("Y-m-d");
$stmt = $conn->prepare("INSERT INTO incidents (description, status, opened) VALUES (?, 'open', ?)");
$stmt->bind_param("ss", $keyword,$date);
$keyword=htmlspecialchars($_POST["keyword"]);