From 78b9f8fabd5f84721b03981410f706ef182689eb Mon Sep 17 00:00:00 2001 From: jakani24 Date: Sat, 17 Feb 2024 10:37:30 +0100 Subject: [PATCH] Update add_client.php --- src/server/cyberhex-code/system/secure_zone/php/add_client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/add_client.php b/src/server/cyberhex-code/system/secure_zone/php/add_client.php index 6c85d21..a1d37d1 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/add_client.php +++ b/src/server/cyberhex-code/system/secure_zone/php/add_client.php @@ -74,7 +74,7 @@ include "../../../config.php"; $location=htmlspecialchars($_POST["location"]); $stmt = $conn->prepare("INSERT INTO machines (machine_name, machine_location,machine_ip) VALUES (?, ?, ?)"); - $stmt->bind_param("sss", $machine_id, $location, $ip); + $stmt->bind_param("sss", $machineid, $location, $ip); $stmt->execute(); $stmt->close();