![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual Download Page 54](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369054.webp)
28
Developing Web Applications with ColdFusion
4
<CFOUTPUT>
4
The query returned #EmpList.RecordCount# records.
4
</CFOUTPUT>
</BODY>
</HTML>
3.
Save the file as
emplist.cfm
.
4.
View the page in a browser.
The number of employees now appears below the list of employees.
Code Review
You now display the number of records retrieved in the query.
Query Properties Notes and Considerations
Keep the following in mind when using query properties:
•
Prefix the property with its type — in this case — prefix the property with the
name of the query.
•
Reference the query property within a CFOUTPUT block so that ColdFusion
will output the query variable 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.
Code
Description
<CFOUTPUT>
Display what follows
The query returned
Display the text "The query returned"
#EmpList.RecordCount#
Display the number of records
retrieved in the EmpList query
records.
Display the text "records"
</CFOUTPUT>
End the CFOUTPUT block.
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...