Please Sign In
cursor = database.cursor("select * from customer order by ID");
Customers by ID
Click on an ID to identify yourself
ID |
Name |
Telephone |
// Dynamically create a table of all customers so they may pick their
// names from a list to sign in.
while(cursor.next()) {
/* The following statement constructs a link that will send the user
to "rent.htm", which will process their request to rent a video.
Notice that the customer ID's are added to the URL as a parameter after
the '?' so that rent.htm can see that parameter as a request property
when the user clicks on a particular link.
*/
write(cursor.id);
|
write(cursor.name); |
write(cursor.phone); |
}