From 9bf125b29bce4db7f7d142f1ae2dafec8d2b7162 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 22 Feb 2010 16:47:35 -0300 Subject: Initial import --- .gitignore | 1 + query.php | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 query.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/query.php b/query.php new file mode 100644 index 0000000..4ac3b25 --- /dev/null +++ b/query.php @@ -0,0 +1,84 @@ + + Demo for package Isis + + 22, 'b' => 42 + ) ); + + // create a db with field list ("fdt") + $fdt = array( + 'periodico' => 1, + 'data' => 2, + 'titulo' => 3, + ); +?> + +

server

+srv->sock ) + echo "could not contact server\n"; + else { +?> + +

terms beginning with...

+terms($query); + echo "got ",count($terms), " terms for '$query'
\n"; + foreach ($terms as $t) { + list($cnt, $term) = explode("\t", $t); + echo "'$term'($cnt) "; + } + echo "
\n"; +?> + +

query reading records

+query($query); + echo "got ",count($recs), " records for '$query'
\n"; + foreach ($recs as $r) + echo "
---\n", $r->toString(), "---\n
\n"; +?> + +

query reading 1

+read(1); + echo "
---\n", $r->toString(), "---\n
\n"; +?> + + -- cgit v1.2.3