Hi,
I need to run a query that will update a DB record with a long, rather complex string of HTML. Here is what I am after ---
This produces and error in the CFSET.
There must be a relatively easy way to handle this problem?
Any help will be much appreciated!
Thanks
RR![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
I need to run a query that will update a DB record with a long, rather complex string of HTML. Here is what I am after ---
Code:
<cfset String ="
<div id="tabs">
<ul id="tablist">
<li><a href="#tabs" onclick="expandcontent('sc1', this)">one</a></li>
<li><a href="#tabs" onclick="expandcontent('sc2', this)">two</a></li>
<li><a href="#tabs" onclick="expandcontent('sc3', this)">three</a></li>
<li><a href="#tabs" onclick="expandcontent('sc4', this)">four</a></li>
</ul>
</div>
">
<cfquery name="Update" datasource="#Application.Datasource#">
UPDATE Table
SET Content = #HTMLEditFormat(String)#
WHERE ID = 2
</cfquery>
This produces and error in the CFSET.
There must be a relatively easy way to handle this problem?
Any help will be much appreciated!
Thanks
RR
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)