There are no records in this table.
'; } else { // NEW: Determine the starting position of the next // set of records to display. $next_index = $initial_record + $number_records_to_display; // NEW: If the next position is larger than the // number of records in the database table, then // reset the next position to the end of the // database table. if ($next_index > $number_of_records) { $next_index = $number_of_records; } // NEW: Display a message so the user knows their // location in the database table. The messages says // "Displaying X to Y of Z records." $t1 = $initial_record + 1; echo "Displaying $t1 to $next_index "; echo "of $number_of_records record(s)
"; // NEW: Determine the starting position of the // previous set of records. $prev_index = $initial_record - $number_records_to_display; // NEW: The starting position can't be less than // zero. if ($prev_index < 0) { $prev_index = 0; } } ?>
| ||
|