Design Center Tutorial
Adding dynamic images to your website using Dreamweaver
Open a ColdFusion database connection
To open a ColdFusion database connection:
- 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.)
- 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).
- After you’ve created the database connection, close the ColdFusion Administrator window and return to Dreamweaver.
- 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).
Figure 1: After you add a new ColdFusion database connection in the ColdFusion Administrator, the connection name appears in the Databases panel in Dreamweaver.