diff --git a/server/web/update_settings.php b/server/web/update_settings.php index a8df8cf..3134e07 100644 --- a/server/web/update_settings.php +++ b/server/web/update_settings.php @@ -18,10 +18,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $macAddress = $_POST['macAddress']; $dmxAddress = $_POST['dmxAddress']; $universe = $_POST['universe']; - + $update_query = "UPDATE tubes SET dmx_address = '$dmxAddress', universe = '$universe' WHERE mac_address = '$macAddress'"; - - $conn->close(); } ?> @@ -35,13 +33,14 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
Error updating settings: ' . $conn->error . '
'; + $conn->close(); } ?>