From d40338d7cf451f4303b2ae0f0b084d7209eeffe1 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 6 Aug 2010 15:31:52 -0300 Subject: Moving index.php to navigate.php --- tests/index.php | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) (limited to 'tests/index.php') diff --git a/tests/index.php b/tests/index.php index ebd465f..f17cae5 100644 --- a/tests/index.php +++ b/tests/index.php @@ -11,23 +11,51 @@ +
+Entry: + +
+
+ db) { - $result = $isis->db->read(1); + $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";
+  echo "
\n";
+  echo "Showing entry $entry from $entries total entries.\n";
+  echo "\n";
   print_r($result);
   echo '
'; } -- cgit v1.2.3