Query Properties Notes And Considerations - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Getting Information About Query Results
You now display the number of records retrieved in the query. The following table
describes the code and its function:
Code
<cfoutput>
The query returned
#EmpList.RecordCount#
records
</cfoutput>

Query properties notes and considerations

When using query properties, keep the following guidelines in mind:
Reference the query property within a
outputs the query property value to the page.
Surround the query property reference with pound signs (#) so that ColdFusion
knows to replace the property name with its current value.
Do not use the
cfoutput
or
property. If you do, you will get one copy of the output for each
ColumnList
row. Instead, prefix the property with the name of the query.
Description
Display what follows
Display the text "The query returned"
Display the number of records retrieved in the EmpList
query
Display the text "records"
End the
cfoutput
cfoutput
tag
attribute when you output the
query
block.
block so that ColdFusion
RecordCount
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents