aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: 423485e715ae0f31ccdb85b2c0e0bc602b5bb4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * Database procedures.
 */

// Import Malete Library
require 'contrib/malete/php/Isis.php';

// Import Spyc
include('contrib/spyc/spyc.php');

// Import database classes
require 'isis.php';

// Test database connection.
$schema = Spyc::YAMLLoad('schemas/anu10.yaml');
$db     = new MaleteDb($schema);
if ($db) {
  $result = $db->read(4);
  echo '<pre>';
  print_r($result);
  echo '</pre>';
}

?>