form($display->form_input_text('entry')); // Get entry number. $entry = CinisisHttpHelper::get_numeric_arg('entry'); // Get a db instance. $isis = new CinisisDb(); // Setup database and entry number. if ($isis->db) { // Get the number of entries. $entries = $isis->db->entries(); // Input sanitization. if ($entries < $entry) { $entry = 1; } // Query database. $result = $isis->db->read($entry); $display->navbar($entry, $entries); // Format output. echo "
\n"; echo "Showing entry $entry from $entries total entries.\n"; echo "\n"; print_r($result); echo ''; } $display->footer(); ?>