Accessibility

Design Center Tutorial

Adding dynamic images to your website using Dreamweaver


Table of Contents

  • PDF Version
  • Open a ColdFusion database connection

    To open a ColdFusion database connection:

    1. Open a new ColdFusion page in Dreamweaver by choosing File > New > Dynamic page > ColdFusion. Save this page as newArt.cfm. If you don’t want to create the page yourself, you can download the newArt.cfm file and additional code files for this book from this book’s Web site at http://www.peachpit.com/dw.vqp. (The newArt.cfm file is also available for download at the top of this tutorial.)
    2. Create a database connection to the tutorial.mdb database included with Cold-Fusion MX 7. The tutorial.mdb file, a Microsoft Access file, is in the root folder of your Web server in the CFIDE directory (CFIDE > gettingstarted > tutorial > tutorial.mdb).
    3. After you’ve created the database connection, close the ColdFusion Administrator window and return to Dreamweaver.
    4. In the Application panel group, click the Databases tab to access the Databases panel. The new database connection (we named it cfartgallery2) will be included in the database list (Figure 1).

       

      Databases panel

      Figure 1: After you add a new ColdFusion database connection in the ColdFusion Administrator, the connection name appears in the Databases panel in Dreamweaver.