CFTABLE

Builds a table in your ColdFusion page. Use the CFCOL tag to define column and row characteristics for a table. CFTABLE renders data either as preformatted text, or, with the HTMLTABLE attribute, as an HTML table. Use CFTABLE to create tables if you don't want to write your own HTML TABLE tag code, or if your data can be well presented as preformatted text. See Usage for information about using the CFCOL tag with the CFTABLE tag.

Syntax

<CFTABLE QUERY="query_name"
    MAXROWS="maxrows_table"
    COLSPACING="number_of_spaces"
    HEADERLINES="number_of_lines"
    HTMLTABLE
    BORDER
    COLHEADERS
    STARTROW="row_number">

</CFTABLE>
QUERY

Required. The name of the CFQUERY from which you want to draw data.

MAXROWS

Optional. Specifies the maximum number of rows ...

Get Sams Teach Yourself ColdFusion® in 21 Days 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.