Is it possible to set a ColdFusion variable to a concatenated string?
<cfoutput query="getName">
<cfset myName=#Firstname# #Lastname#>
</cfoutput>
Doesn’t seem to work, nor does
<cfoutput query="getName">
<cfset teacherName=#Firstname# + #Lastname#>
</cfoutput>
If you really need an additional variable, ColdFusion’s concatenation operator is
&Though for simple output, no extra variable is needed. Just output the column values: