September 2007
Intermediate to advanced
600 pages
20h 21m
English
The best way to understand structured development—what it does and the problems it solves—is to look at an example. Listing 11.1 should be familiar; it’s the first data-driven example we looked at in Chapter 10, “Creating Data-Driven Pages.”
<!--- Name: movies1.cfm Author: Ben Forta (ben@forta.com) Description: First data-driven Web page Created: 07/01/07 ---> <!--- Get movie list from database ---> <cfquery name="movies" datasource="ows"> SELECT MovieTitle FROM Films ORDER BY MovieTitle </cfquery> <!--- Create HTML page ---> <html> <head> <title>Orange Whip Studios - Movie List</title> </head> <body> <h1>Movie List</h1> <!--- Display movie list ---> <cfoutput ... |
Read now
Unlock full access