diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-18 12:00:21 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-18 12:00:21 -0300 |
commit | 70539fe94d67cb4bdde7edce8a26873343d3c240 (patch) | |
tree | 2009cc33ccafa6a6f7c3d66523e6000cca10677d /apps/test.php | |
parent | f7b8ba01cb6cbf78d5e687bd17dc5c571fe6c85e (diff) | |
download | cinisis-70539fe94d67cb4bdde7edce8a26873343d3c240.tar.gz cinisis-70539fe94d67cb4bdde7edce8a26873343d3c240.tar.bz2 |
Moving tests to apps folder
Diffstat (limited to 'apps/test.php')
-rw-r--r-- | apps/test.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/test.php b/apps/test.php new file mode 100644 index 0000000..2b1fe5c --- /dev/null +++ b/apps/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(); |