-----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
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
