diff options
-rw-r--r-- | html/db.php | 2 |
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(); |