Solved

Using # for non-variables

Posted on 2004-08-04
3
155 Views
Last Modified: 2013-12-24
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
Comment
Question by:thecode101
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
pinaldave earned 50 total points
ID: 11716795
Hi thecode101,
use  ###ID# instead of  ##ID# it will work.

Regards,
---Pinal
0
 
LVL 3

Author Comment

by:thecode101
ID: 11716812
Wow thats to easy, thanks.
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11716826
well, glad to help you my friend.
---Pinal
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now