diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-18 12:01:13 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-18 12:01:13 -0300 |
commit | eb217536079197bd1d17cda2c2adf4ba12bad504 (patch) | |
tree | aa69b49fe3769430c9902fa1bc999c06aed58012 /samples/phpisis.php | |
parent | 70539fe94d67cb4bdde7edce8a26873343d3c240 (diff) | |
download | cinisis-eb217536079197bd1d17cda2c2adf4ba12bad504.tar.gz cinisis-eb217536079197bd1d17cda2c2adf4ba12bad504.tar.bz2 |
Moving some apps to the samples folder
Diffstat (limited to 'samples/phpisis.php')
-rw-r--r-- | samples/phpisis.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/samples/phpisis.php b/samples/phpisis.php new file mode 100644 index 0000000..75326f1 --- /dev/null +++ b/samples/phpisis.php @@ -0,0 +1,29 @@ +<?php +/** + * Test query script. + */ +?> + +<h3>Testing pecl-isis</h3> +<?php + + $db = isis_open('db/dbname/dbname'); + 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> |