diff options
Diffstat (limited to 'samples/test.php')
-rw-r--r-- | samples/test.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/test.php b/samples/test.php new file mode 100644 index 0000000..2b1fe5c --- /dev/null +++ b/samples/test.php @@ -0,0 +1,28 @@ +<?php +/** + * Cinisis - Isis db reading tool. + */ + +// Import requisites. +require_once '../index.php'; + +// Draw the document. +$display = new CinisisDisplayHelper('Isis Test'); + +// Get a db instance. +$isis = new CinisisDb(); + +// Test connection. +if ($isis->db) { + $result = $isis->db->read(1); + $entries = $isis->db->entries(); + + // Format output. + echo '<pre>'; + echo "Connection test:\n"; + echo "Rows: $entries\n"; + print_r($result); + echo '</pre>'; +} + +$display->footer(); |