From 70539fe94d67cb4bdde7edce8a26873343d3c240 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 18 Aug 2010 12:00:21 -0300 Subject: Moving tests to apps folder --- apps/read.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 apps/read.php (limited to 'apps/read.php') diff --git a/apps/read.php b/apps/read.php new file mode 100644 index 0000000..835ae60 --- /dev/null +++ b/apps/read.php @@ -0,0 +1,51 @@ + + + + + array( + 'implementation' => 'PhpIsis', + 'database' => 'dbname', + ), + 1 => array( + 'implementation' => 'BiblioIsis', + 'database' => 'dbname', + ), +); + +foreach ($configs as $config) { + // Get a db instance. + $isis = new CinisisDb($config); + + // Test connection. + if ($isis->db) { + $result = $isis->db->read(1); + $entries = $isis->db->entries(); + + // Format output. + echo ''; + } +} + +?> + +
'; + echo '
';
+    echo 'Implementation: '. $config['implementation'] ."\n";
+    echo "Rows: $entries\n";
+    print_r($result);
+    echo '
'; + echo '
+ -- cgit v1.2.3