I wonder if it is possible to display specific content taken from Loop or Output in ColdFusion, for example, I have the output:
<cfoutput query="get_service_plus"><b>#SUBJECT#</b><br/>#plus_content#<br/></cfoutput>
and his request, just in case:
<cfquery name="GET_SERVICE_PLUS" datasource="#DSN3#">
SELECT
*
FROM
SERVICE_PLUS
WHERE
SERVICE_ID = #attributes.action_id#
<cfif isDefined("GET_SERVICE_PLUS.SERVICE_PLUS_ID")>
AND SERVICE_PLUS_ID = #GET_SERVICE_PLUS.SERVICE_PLUS_ID#
</cfif>
ORDER BY PLUS_DATE DESC,RECORD_DATE DESC
</cfquery>
I know that I most likely should use loops to get specific content from db, but could not figure out how to achieve it ... thanks for reference!
source
share