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

Step 10. Using Lists, Arrays, and Struct... > Example 10.4: Populating an Array wi...

Example 10.4: Populating an Array with Query Data

In this example, we are going to query a database to get all employee names and their extension numbers. We will then create an array to hold this information and will store this array in the Application scope.

Next we will use another template to recall and display the company phone list. Because this example relies on the use of the Application scope, make sure your Examples\Step10 folder contains a copy of the Application.cfm file created in Step 8, “ColdFusion Application Framework.”


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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