That works beautifully. Thanks for the quick answer.
-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 2:02 PM
To: CF-Newbie
Subject: RE: variables stored in database text fields
You could try...
<cfset session.name = "Bob">
<cfoutput query="getdata">
#Evaluate(DE(messagetext))#
</cfoutput>
not sure if there's a better way if you continue to store session.name as
a
string in the DB. Would it not be better to replace session.name with an
identifier that you replace with the name when outputting?
Hope that helps
Ade
-----Original Message-----
From: Nick Cabell [mailto:[EMAIL PROTECTED]
Sent: 08 April 2004 20:35
To: CF-Newbie
Subject: variables stored in database text fields
I have a DB text field that I display, but one of the words in the
text field needs to be a session variable. How do I tell CF
to output the variable value as opposed to the text.
Here is what I have:
<cfset session.name = "Bob">
<cfoutput query="getdata">
#messagetext#
</cfoutput>
The #messagetext# variable contains this, for example:
"Hello #session.name#, how are you".
nick
-----Original Message-----
From: Eric Jones [mailto:[EMAIL PROTECTED]
Sent: 09 April 2004 19:15
To: CF-Newbie
Subject: CF in a database
Hey all,
I'm wondering is it possible to store CF Code in a database and then
have the CF server execute it when it's extracted? if so can you give me a
working example??
ERJ
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
