Bryan Stevenson wrote:
> > can you wrap a <cfoutput> around the ## variable?
>
> How do you see that helping Greg? The <cfoutput> would still be part of the
> variable being outputted (i.e. the text from the field in the DB).....so
> you'd see the <cfoutput>#MyVar#</cfoutput> on the screen.
Here's a repost of a solution to this problem:
From: "eastinq" <[EMAIL PROTECTED]>
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Subject: Re: Evaluate variables in midst of a string!
Date: Wed, 23 Feb 2005 22:04:13 +0000 (UTC)
It is possible, what your wanting to do.
<!---
login username greeting
------- ----------- ----------------
abc Billy Bob Hello #username#! Welcome to this site!
--->
<cfquery name="myquery" datasource="testdb">
select username, greeting
from profile
where login = 'abc'
</cfquery>
<cfoutput query="myquery">
#evaluate(de(myquery.greeting))#
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209341
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54