This is probably an easy quest, but I am a CF n00b and I can't find the answer anywhere. Ok, heres the problem I am querying a database and getting results. Then with the result I want to create a page that does the following
<a href="#12">Title of the Thing</a>
further down the page...
<a name="12"></a>Title of the Thing
Heres my coldfusion code:
<cfoutput query="theQuery"> <a href="##ID#">#title#</a>
further down the page..
<a name="#ID#"></a>#title#</cfoutput>
The problem is with the ##ID#(it doesn't like this), I need a way to seperate the # which is html from the #ID# which is coldfusion variable. Thanks in advance.
Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.
use ###ID# instead of ##ID# it will work.
Regards,
---Pinal