aboutsummaryrefslogtreecommitdiff
path: root/tests/phpisis.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-04-08 11:55:02 -0300
committerSilvio <silvio@devlet.com.br>2010-04-08 11:55:02 -0300
commit1f0a5aa6b243e2b8bba66fc62bd029e2fa801e4b (patch)
tree42a49cfc1cf5422c5b42364b711c5b2597956cfb /tests/phpisis.php
parent923e3c23d05dc235f26d8cc3d96e4f43e1754b32 (diff)
downloadcinisis-1f0a5aa6b243e2b8bba66fc62bd029e2fa801e4b.tar.gz
cinisis-1f0a5aa6b243e2b8bba66fc62bd029e2fa801e4b.tar.bz2
Sorting out folder schene
Diffstat (limited to 'tests/phpisis.php')
-rw-r--r--tests/phpisis.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/phpisis.php b/tests/phpisis.php
new file mode 100644
index 0000000..d04fbd9
--- /dev/null
+++ b/tests/phpisis.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Test query script.
+ */
+?>
+
+<h3>Testing pecl-isis</h3>
+<?php
+
+ $db = isis_open('db/anu10/anu10');
+ //$db = isis_open('db/tupi/tupi');
+ print_r(isis_last_mfn($db));
+
+ echo '<table>';
+
+ $result = isis_search('$', $db);
+ while ($record = isis_fetch_flat_array($result) ) {
+ print (" <tr><td colspan=\"2\">MFN: $record[mfn]</td></tr>\n");
+ for ($i=0; $i<count($record)-1; ++$i) { //-1 porque el mfn es +1
+ list ($tag, $value) = $record[$i];
+ print (" <tr>\n".
+ " <td>$tag</td>\n".
+ " <td>".htmlspecialchars($value)."</td>\n".
+ " </tr>\n");
+ }
+ }
+ echo '</table>';
+?>
+
+</body></html>