aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-06 15:30:21 -0300
committerSilvio <silvio@devlet.com.br>2010-08-06 15:30:21 -0300
commitf7b51424272e7ca79b0e0f9361972bf4bca10062 (patch)
tree0efcfc935580d16b44bd94febe901668892c1296
parent896640c17c8cd011aa2138411b8f59e057ac6788 (diff)
downloadcinisis-f7b51424272e7ca79b0e0f9361972bf4bca10062.tar.gz
cinisis-f7b51424272e7ca79b0e0f9361972bf4bca10062.tar.bz2
Navigation enhancements
-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>';
}