aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/navigate.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/navigate.php b/tests/navigate.php
index 5eed190..fc57800 100644
--- a/tests/navigate.php
+++ b/tests/navigate.php
@@ -11,6 +11,12 @@
</head>
<body>
+<form action="navigate.php" method="get">
+Entry: <input name="entry" type="text" />
+<input type="submit" />
+</form>
+<br />
+
<?php
// Import Cinisis Library.
@@ -27,7 +33,7 @@ else {
// Get a db instance.
$isis = new CinisisDb();
-// Test connection.
+// Setup database and entry number.
if ($isis->db) {
$result = $isis->db->read($entry);
$entries = $isis->db->entries();
@@ -47,9 +53,9 @@ if ($isis->db) {
}
// Format output.
- echo '<pre>';
- echo "Connection test:\n";
- echo "Rows: $entries\n";
+ echo "<pre>\n";
+ echo "Showing entry $entry from $entries total entries.\n";
+ echo "\n";
print_r($result);
echo '</pre>';
}