WriteBody

Description

Writes an output to a page. WriteBody should be used within a tag with a body only.

Category

Syntax

WriteBody(value)
WriteBody(value)
WriteBody(value)

Parameters

Parameter

Description

value

A string or any variable.

See also

Example

<cfscript>
query = {datasource="cfartgallery",name="x" };
cfquery(attributeCollection=query)
{
writeBody("select * from art where artistid=1 and artid = ");
cfqueryparam(value="1",cfsqltype="CF_SQL_INTEGER");
}
WriteDump(x);
</cfscript>
<cfscript> query = {datasource="cfartgallery",name="x" }; cfquery(attributeCollection=query) { writeBody("select * from art where artistid=1 and artid = "); cfqueryparam(value="1",cfsqltype="CF_SQL_INTEGER"); } WriteDump(x); </cfscript>
<cfscript>
       query = {datasource="cfartgallery",name="x" };
       cfquery(attributeCollection=query)
       {
          writeBody("select * from art where artistid=1 and artid = "); 
                                                                                     
          cfqueryparam(value="1",cfsqltype="CF_SQL_INTEGER");
        }
        WriteDump(x);           
</cfscript>

Get help faster and easier

New user?