summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-07-28 10:41:30 +0200
committerErich Eckner <git@eckner.net>2022-07-28 10:41:30 +0200
commit703b60ed3ca3fb1653c008d42fd2dcf481b72927 (patch)
tree1367769f4e80c1cb80b9b95c328efe45b288b8ff
parent48dd7870f039156d44147432a26d3aff78df1a80 (diff)
downloadcolocation-703b60ed3ca3fb1653c008d42fd2dcf481b72927.tar.xz
fix syntax error in SQL
-rw-r--r--html/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/db.php b/html/db.php
index f638286..503ef13 100644
--- a/html/db.php
+++ b/html/db.php
@@ -26,7 +26,7 @@ class MyDB extends SQLite3 {
return $result;
}
function add_key($comment) {
- $stm = $this -> prepare('INSERT INTO keys (key) VALUES (:key, :comment)');
+ $stm = $this -> prepare('INSERT INTO keys (key, comment) VALUES (:key, :comment)');
$stm -> bindValue('key', bin2hex(random_bytes(64)));
$stm -> bindValue('comment', $comment);
$stm -> execute();