Casey:
I'm not trying to display a date. I'm trying to display something like
this:
In a column field named wrong_answer, for example, this is the text in that
field:
<cfset #thisdate# = #DateFormat(Now))#>
Now, I want to display in a set of <cfoutput> tags, like this:
<cfoutput>
#wrong_answer#
</cfoutput>
I don't want the date. I want the whole text field to display.
Nothing will display. I think it might be because this is coldfusion code
in the column field.
Thanks again,
Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: [EMAIL PROTECTED] or
[EMAIL PROTECTED], or
[EMAIL PROTECTED]
ICQ: 21200397
Website: http://www.tkisolutions.com
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 4:08 PM
Subject: Re: Displaying # signs from database
> <<cfoutput>cfset #thisdate# = #DateFormat(Now())#</cfoutput>>
>
> Casey Cook
>
>
>
>
> "Yvette Ingram" <[EMAIL PROTECTED]> on 07/20/2001 01:03:38 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: CF-Talk <[EMAIL PROTECTED]>
> cc:
> Subject: Re: Displaying # signs from database
>
>
> Tony:
>
> Yes I know. I was trying to demonstrate an example of my problem with
> cfcode and pounds signs in my database table. Probably should have used
> another example.
>
> Thanks just the same.
>
>
> Yvette Ingram
> Brainbench Certified ColdFusion 4.5 Programmer
> Email: [EMAIL PROTECTED] or
> [EMAIL PROTECTED], or
> [EMAIL PROTECTED]
> ICQ: 21200397
> Website: http://www.tkisolutions.com
>
>
> ----- Original Message -----
> From: "Tony Schreiber" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, July 20, 2001 1:57 PM
> Subject: Re: Displaying # signs from database
>
>
> > As an added note, when assigning values to variables, the # signs are
not
> > needed at all:
> >
> > <cfset thisdate = DateFormat(Now())>
> >
> > > I think that what I thought was my problem is not the problem.
> > >
> > > In the database I have coldfusion code, i.e., <cfset #thisdate# =
> > > #DateFormat(Now())#>.
> > >
> > > I'm trying to display this code, but I don't think the # signs are not
> the
> > > problem. I think it's the cf code itself. Because I have text in
> another
> > > column in that row the the # sign in it, but it's not cf code and it's
> > > displaying ok.
> > >
> > > Should I put something special in the database so this data can
> display.
> I
> > > tried using the code you gave, but that's not working. Also I kept
> getting
> > > an error complaining about that first # in the ReplaceNoCase
statement.
> > >
> > > TIA,
> > >
> > > Yvette Ingram
> > > Brainbench Certified ColdFusion 4.5 Programmer
> > > Email: [EMAIL PROTECTED] or
> > > [EMAIL PROTECTED], or
> > > [EMAIL PROTECTED]
> > > ICQ: 21200397
> > > Website: http://www.tkisolutions.com
> > >
> > >
> > > ----- Original Message -----
> > > From: "Sandy Clark" <[EMAIL PROTECTED]>
> > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > Sent: Friday, July 20, 2001 9:43 AM
> > > Subject: RE: Displaying # signs from database
> > >
> > >
> > > > <cfoutput>
> > > > #replacenocase(stringfromdatabase, "#", "##", "ALL")#</cfoutput>
> > > >
> > > > Hey Yvette. Hope things are going well, long time no talk!
> > > >
> > > > Sandy
> > > >
> > > > -----Original Message-----
> > > > From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, July 20, 2001 6:09 AM
> > > > To: CF-Talk
> > > > Subject: Re: Displaying # signs from database
> > > >
> > > >
> > > > I need to clarify that the records from the database are being
output
> > > > randomly, so I never know when the record with the # signs in it is
> going
> > > to
> > > > display.
> > > >
> > > > TIA,
> > > > Yvette Ingram
> > > > Brainbench Certified ColdFusion 4.5 Programmer
> > > > Email: [EMAIL PROTECTED] or
> > > > [EMAIL PROTECTED], or
> > > > [EMAIL PROTECTED]
> > > > ICQ: 21200397
> > > > Website: http://www.tkisolutions.com
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Yvette Ingram" <[EMAIL PROTECTED]>
> > > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > > Sent: Friday, July 20, 2001 9:03 AM
> > > > Subject: OT: Displaying # signs from database
> > > >
> > > >
> > > > > I have data in my database that has # signs around some text,
i.e.,
> > > > > #something#, etc.
> > > > >
> > > > > When I try to output the data, it's not printing. Anyone know how
> to
> > > get
> > > > > this to display?
> > > > >
> > > > > TIA,
> > > > > Yvette Ingram
> > > > > Brainbench Certified ColdFusion 4.5 Programmer
> > > > > Email: [EMAIL PROTECTED] or
> > > > > [EMAIL PROTECTED], or
> > > > > [EMAIL PROTECTED]
> > > > > ICQ: 21200397
> > > > > Website: http://www.tkisolutions.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists