From 6fe3fbefb5b2bd9727841854d821fef27ef7c0db Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 15 Jun 2025 00:54:10 -0700 Subject: [PATCH] Fix SQL syntax --- server/php/timetrack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/php/timetrack.php b/server/php/timetrack.php index 9506423..2ce0a73 100644 --- a/server/php/timetrack.php +++ b/server/php/timetrack.php @@ -24,7 +24,7 @@ function create($DB, $jsx, $blank) { $sessionId = $row['id']; // Insert into `sessions` table - $stmt = $DB->prepare("INSERT INTO `sessions` (`ID`, `timestamp`, 'version') VALUES (?, CURRENT_TIMESTAMP(), 0)"); + $stmt = $DB->prepare("INSERT INTO `sessions` (`ID`, `timestamp`, `version`) VALUES (?, CURRENT_TIMESTAMP(), 0)"); $stmt->bind_param("s", $sessionId); if (!$stmt->execute()) { http_response_code(500);