+<?php
// /home/bdsm must be bdsm:www-root 775
// /home/bdsm/bdsm.sqlite3* must be bdsm:www-root 775
-<?php
$db = new PDO("sqlite:/home/bdsm/bdsm.sqlite3");
$result = $db->query("SELECT * FROM bdsmweb");
$query = "CREATE TABLE bdsmweb (host VARCHAR(128),".
"attribute VARCHAR(128), name VARCHAR(128), ".
"graph integer, maximum integer, minimum integer, ".
- "duration integer, primary key (host, attribute);";
+ "duration integer, primary key (host, attribute));";
$db->query($query);
$result = $db->query("SELECT * FROM bdsmweb;");