• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. The Basics of Structured Dev... > Understanding Structured Development

Understanding Structured Development

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.”

Listing 11.1. movies1.cfm—The Basic Movie List

<!---
Name:        movies1.cfm
Author:      Ben Forta (ben@forta.com)
Description: First data-driven Web page
Created:     12/15/04
--->

<!--- 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 query="movies">
#MovieTitle#<br>
</cfoutput>

</body>
</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint