MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 237

Cfml language reference
Table of Contents

Advertisement

Chapter 1: ColdFusion Tags
Usage
You can use the
column, and provide column headers.
Note
Example
<!--- This example shows the use of CFCOL and CFTABLE
to align information returned from a query --->
<!--- This query selects employee information from the
cfsnippets datasource --->
<CFQUERY NAME="GetEmployees" DATASOURCE="cfsnippets">
SELECT Emp_ID, FirstName, LastName, EMail, Phone, Department
FROM Employees
</CFQUERY>
<HTML>
<HEAD>
<TITLE>CFTABLE Example</TITLE>
</HEAD>
<BODY>
<H3>CFTABLE Example</H3>
<!--- Note the use of the HTMLTABLE attribute to display the
CFTABLE as an HTML table, rather simply as PRE formatted information --->
<CFTABLE QUERY="GetEmployees" STARTROW="1" COLSPACING="3" HTMLTABLE>
<!--- each CFCOL tag sets the width of a column in the table,
as well as specifying the header information and the text/CFML
with which to fill the cell --->
<CFCOL HEADER = "<B>ID</B>"
<CFCOL HEADER = "<B>Name/Email</B>"
<CFCOL HEADER = "<B>Phone Number</B>"
</CFTABLE>
</BODY>
</HTML>
CFCOL
tag to align the data in the table , specify the width of each
CFCOL is the only tag that you can nest within CFTABLE.
ALIGN = "Left"
WIDTH = 2
TEXT
= "#Emp_ID#">
ALIGN = "Left"
WIDTH = 15
TEXT
= "<a href='mailto:#Email#'>#FirstName# #LastName#</A>">
ALIGN = "Center"
WIDTH = 15
TEXT
= "#Phone#">
213

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents