cursor = database.cursor("select * from customer, rentals, videos where rentals.returnDate IS NULL AND rentals.customerId = customer.ID AND rentals.videoId = videos.id");
/* 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()) { } cursor.close();

Rentals By Customer

Click on title to return
Title Customer Due Date
write(cursor.title); write(cursor.name); write(datetoString(cursor.duedate));

Back to Home Page