CF Variables in database...

2001-03-25 Thread Steve Reich

I have data in my database that contains CF varaibles. For example, "Hello,
Mr. #lname#" might be in my database. I call this data from a query and
insert it into a page that has lname defined. So I want it to assign a value
to the variable. But when I out the code, it is returned as #lname#,
complete with pound signs and CF ignores it.

How can I run a query that returns variables to be processed by CF server?

Thanks,
Steve



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Variables in database...

2001-03-25 Thread William Wheatley

you have to put a

CFOUTPUT /cfoutput
around the variables

or CFOUTPUT query="blah"

CFOUTPUT has to be around all ## variables in order to be processed as
anything other then text/html


Bill Wheatley
Director of Development
Allaire Certified ColdFusion Developer
AEPS INC
Allaire ColdFusion Consulting Partner
www.aeps.com
www.aeps2000.com
954-472-6684 X303
ICQ: 417645



- Original Message -
From: "Steve Reich" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Sunday, March 25, 2001 4:10 PM
Subject: CF Variables in database...


 I have data in my database that contains CF varaibles. For example,
"Hello,
 Mr. #lname#" might be in my database. I call this data from a query and
 insert it into a page that has lname defined. So I want it to assign a
value
 to the variable. But when I out the code, it is returned as #lname#,
 complete with pound signs and CF ignores it.

 How can I run a query that returns variables to be processed by CF server?

 Thanks,
 Steve




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CF Variables in database...

2001-03-25 Thread Steve Reich

Works perfect! Thanks.

"William Wheatley" [EMAIL PROTECTED] wrote in message
news:000701c0b57e$e8c05740$[EMAIL PROTECTED]...
 you have to put a

 CFOUTPUT /cfoutput
 around the variables

 or CFOUTPUT query="blah"

 CFOUTPUT has to be around all ## variables in order to be processed as
 anything other then text/html


 Bill Wheatley
 Director of Development
 Allaire Certified ColdFusion Developer
 AEPS INC
 Allaire ColdFusion Consulting Partner
 www.aeps.com
 www.aeps2000.com
 954-472-6684 X303
 ICQ: 417645



 - Original Message -
 From: "Steve Reich" [EMAIL PROTECTED]
 To: "CF-Talk" [EMAIL PROTECTED]
 Sent: Sunday, March 25, 2001 4:10 PM
 Subject: CF Variables in database...


  I have data in my database that contains CF varaibles. For example,
 "Hello,
  Mr. #lname#" might be in my database. I call this data from a query and
  insert it into a page that has lname defined. So I want it to assign a
 value
  to the variable. But when I out the code, it is returned as #lname#,
  complete with pound signs and CF ignores it.
 
  How can I run a query that returns variables to be processed by CF
server?
 
  Thanks,
  Steve
 
 
 
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists