Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Using # for non-variables

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.
0
thecode101
Asked:
thecode101
  • 2
1 Solution
 
pinaldaveCommented:
Hi thecode101,
use  ###ID# instead of  ##ID# it will work.

Regards,
---Pinal
0
 
thecode101Author Commented:
Wow thats to easy, thanks.
0
 
pinaldaveCommented:
well, glad to help you my friend.
---Pinal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now