cursor = database.cursor("select * from customer, rentals, videos where rentals.returnDate IS NULL AND rentals.customerId = customer.ID AND rentals.videoId = videos.id");

## Rentals By Customer

Click on title to return
Title | Customer | Due Date
--- | --- | ---
/* Here again we are dynamically constructing a table to display a list of current movies that have been rented. Notice below that we are sending two arguments in the URL, and that they are separated by a '&' character, as URL encoding specifies. */ while(cursor.next()) {
write(cursor.title); | write(cursor.name); | write(datetoString(cursor.duedate));
} cursor.close();