Solved

Using # for non-variables

Posted on 2004-08-04
3
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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