From eb217536079197bd1d17cda2c2adf4ba12bad504 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 18 Aug 2010 12:01:13 -0300 Subject: Moving some apps to the samples folder --- samples/read.php | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 samples/read.php (limited to 'samples/read.php') diff --git a/samples/read.php b/samples/read.php new file mode 100644 index 0000000..835ae60 --- /dev/null +++ b/samples/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