Update add_entry.php

This commit is contained in:
jakani24
2024-01-21 16:58:13 +01:00
parent 640965528f
commit 640900ad4e

View File

@@ -16,7 +16,7 @@ else{
if ($conn->connect_error) { if ($conn->connect_error) {
die("conn_err"); die("conn_err");
} }
$sql = "INSERT INTO log loglevel,machine_id,logtext VALUES (?,?,?);"; $sql = "INSERT INTO log (loglevel,machine_id,logtext) VALUES (?,?,?);";
$stmt = $conn->prepare($sql); $stmt = $conn->prepare($sql);
$stmt->bind_param("sss", $$loglevel,$machine_id,$logtext); $stmt->bind_param("sss", $$loglevel,$machine_id,$logtext);
// Execute the statement // Execute the statement