aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-03-25 18:10:24 -0300
committerSilvio <silvio@devlet.com.br>2010-03-25 18:10:24 -0300
commit7bceb19f1d291a283f3442b3880a8cc3abea7d48 (patch)
tree14b1d228c3b9401861886c0cf2f24d962294d0bf
parent4ddeda8f15570da4e1f06698ddce1f0ee86aa50e (diff)
downloadcinisis-7bceb19f1d291a283f3442b3880a8cc3abea7d48.tar.gz
cinisis-7bceb19f1d291a283f3442b3880a8cc3abea7d48.tar.bz2
Misc changes
-rw-r--r--index.php (renamed from query.php)12
1 files changed, 8 insertions, 4 deletions
diff --git a/query.php b/index.php
index ee0d0e2..071d06d 100644
--- a/query.php
+++ b/index.php
@@ -125,14 +125,16 @@ include('spyc/spyc.php');
'vĂ­deo' => 902,
);
- $fdt = $fdt_anu10;
+ $db = 'tupi';
+ //$db = 'anu10';
+ $fdt = ${'fdt_'. $db};
$yaml = Spyc::YAMLDump($fdt);
?>
<h2>server</h2>
<?php
- $db = new Isis_Db($fdt, 'anu10', new Isis_Server());
+ $db = new Isis_Db($fdt, $db, new Isis_Server());
if (!$db->srv->sock) {
echo "could not contact server\n";
}
@@ -175,9 +177,11 @@ include('spyc/spyc.php');
<h3>query reading a record</h3>
<?php
- $r = $db->read(1);
+ $r = $db->read(3);
echo "<pre>---\n", $r->toString(), "---\n</pre><br>\n";
- print_r($r);
+ echo '<pre>';
+ echo print_r($r);
+ echo '</pre>';
} // end else could contact server
?>