From 896640c17c8cd011aa2138411b8f59e057ac6788 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 6 Aug 2010 15:21:50 -0300 Subject: Adding navitagion script --- tests/navigate.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 tests/navigate.php (limited to 'tests/navigate.php') diff --git a/tests/navigate.php b/tests/navigate.php new file mode 100644 index 0000000..5eed190 --- /dev/null +++ b/tests/navigate.php @@ -0,0 +1,58 @@ + + + + + + + + + +db) { + $result = $isis->db->read($entry); + $entries = $isis->db->entries(); + + if ($entries < $entry) { + $entry = 1; + } + + if ($entry != 1) { + $prev = $entry - 1; + echo '< prev '; + } + + if ($entry < $entries) { + $next = $entry + 1; + echo 'next >'; + } + + // Format output. + echo '
';
+  echo "Connection test:\n";
+  echo "Rows: $entries\n";
+  print_r($result);
+  echo '
'; +} + +?> + -- cgit v1.2.3