Commit b6b97a68 authored by Nico Schallehn's avatar Nico Schallehn

no new Keys insert

parent 82784d88
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
if ($db = new SQLite3(API_KEY_DB)) { if ($db = new SQLite3(API_KEY_DB)) {
$db->exec('CREATE TABLE Keys (Schuessel varchar(10), Server varchar(20), Username varchar(20), Passwort varchar(20))'); //$db->exec('CREATE TABLE Keys (Schuessel varchar(10), Server varchar(20), Username varchar(20), Passwort varchar(20))');
$db->exec("INSERT INTO Keys VALUES ('0123456789', 'localhost', 'MediaDB', 'MediaDB')"); // $db->exec("INSERT INTO Keys VALUES ('0123456789', 'localhost', 'MediaDB', 'MediaDB')");
$result = $db->query('select * from Keys'); $result = $db->query('select * from Keys');
var_dump($result->fetchArray()); var_dump($result->fetchArray());
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment