pamela/lib/db.php
2010-11-14 00:15:26 +01:00

12 lines
146 B
PHP

<?php
require_once("config.php");
function get_db() {
static $db = NULL;
if ($db == NULL) {
$db = new SQLite3(SQLITE_DB);
}
return $db;
}