Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using # for non-variables

Posted on 2004-08-04
3
Medium Priority
?
162 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 200 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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

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…
What You Need to Know when Searching for a Webhost Provider
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

705 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