if(client.customerID != null) { cursor = database.cursor("select * from rentals, videos where rentals.returnDate IS NULL AND rentals.videoId = videos.id AND rentals.customerId = " + client.customerID); } else { redirect("client.html"); }
Current Rentals
Title
Rental Date
Due Date
while(cursor.next()) {
write(cursor.title);
write(cursor.rentalDate.toLocaleString());
write(cursor.dueDate.toLocaleString());
}
Rent Another
Home