aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index f382f22..21d4d18 100644
--- a/index.php
+++ b/index.php
@@ -17,14 +17,18 @@ function __autoload($class) {
require_once 'classes/' .$class. '.php';
}
-// Test database connection.
+// Load database schema.
$schema = Spyc::YAMLLoad('schemas/anu10.yaml');
+
+// Setup database connection.
$db = new MaleteDb($schema);
//$db = new PhpIsisDb($schema);
+
+// Test connection.
if ($db) {
+ echo '<pre>';
$result = $db->read(1);
//$result = $db->rows();
- echo '<pre>';
print_r($result);
echo '</pre>';
}