CFML (cont’d)
Next, the <cfoutput> tag is required to display the output of a particular <cfquery>.
<cfquery name=“student_list” datasource=“student_db”>
SELECT studentID, studentName
<cfoutput query=“student_list”>
#studentID# -- #studentName#
Although the <cfquery> tags do not have to be placed within the <HTML> </HTML> tags, the <cfoutput> must be placed within these tags.