|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
$pdo = null;
|
|
|
try {
|
|
|
- $pdo = new PDO("sqlite:" . './slork.sqlite');
|
|
|
+ $pdo = new PDO("sqlite:" . "${db_path}/slork.sqlite");
|
|
|
} catch (PDOException $e) {
|
|
|
// handle the exception here
|
|
|
}
|
|
|
@@ -83,7 +83,7 @@ HTML;
|
|
|
--AND player != ?
|
|
|
SQL;
|
|
|
$stmt = $pdo->prepare($query);
|
|
|
- $stmt->execute([$maintainer[0]]);
|
|
|
+ $stmt->execute( [$maintainer[0]] );
|
|
|
$rows = $stmt->fetchAll();
|
|
|
/*
|
|
|
print("<pre>");
|