Name
cftable
Synopsis
Builds an HTML table from a query result set.
<cftable> [<cfcol>] [<cfcol>] ... </cftable>
Attributes
-
query="
query_name"
The name of the query from which to pull the data used to populate the table. Required.
-
border
Used in conjunction with the
htmltable
attribute. Adds a border to the table. Optional.-
colheaders="
integer
"
Displays the header for each column as specified in the
header
attribute of thecfcol
tag. Optional.-
colspacing="
integer
"
The number of spaces to insert between columns in the table. Optional. The default is
2
.-
headerlines="
integer
"
Displays headers for each column as specified in the
cfcol
tag. Optional.-
htmltable
Creates the table as an HTML 3.0 table. Optional.
-
maxrows="
integer
"
The maximum number of rows to output. Optional.
-
startrow="
row_number
"
The query row to begin outputting from. Optional.
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.