Adobe 38000827 - Macromedia ColdFusion MX Standard Edition Evaluator Manual page 13

Evaluator guide
Hide thumbs Also See for 38000827 - Macromedia ColdFusion MX Standard Edition:
Table of Contents

Advertisement

Macromedia® ColdFusion® MX Evaluator's Guide
other web technologies. Developers can then test the pages locally or deploy them on a
web server where the ColdFusion MX environment has been installed. The following is an
example of a simple dynamic web page written with CFML. The majority of the text is
standard HTML, while the highlighted lines are ColdFusion tags.
<CFQUERY NAME="ProductList" DATASOURCE="CompanyDB">
SELECT * FROM Products
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Product List</TITLE>
</HEAD>
<BODY>
<H1>Company X Products</H1>
<CFOUTPUT QUERY="ProductList">
#ProductName# $#Price# <BR>
</CFOUTPUT>
</BODY>
</HTML>
The first ColdFusion tag embedded in this page instructs the ColdFusion environment to
retrieve all of the entries from the Products table in the CompanyDB database. The
second tag instructs ColdFusion to place the results from the query on the page, with
each product name and its associated price on its own line. These instructions on the
ColdFusion page are processed entirely on the server. Only the results, in this case the list
of products and the associated HTML tags, are passed to the browser requesting the
page.
With its intuitive server scripting and integrated development tools, ColdFusion MX
enables developers to build advanced websites and applications – including database
reporting systems, content publishing solutions, portals, ecommerce sites and more – in
the most rapid and cost-effective manner available.
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Macromedia coldfusion mx

Table of Contents