Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

line breaks- store in DB

Status
Not open for further replies.

ryanbrand

Programmer
Oct 28, 2003
22
US
Hi,
I have a text area that will put it's text in a DB. Later the text will be displayed on the website but not in a text area. How do I store the data so that the line breaks are on the website.

How do I replace the text area breaks with <br>?
Thank you for your help.
Ryan
 
simple. :)

<cfoutput>#replace(qMyQuery.MyFieldName, chr(10), "<br>", "All")#</cfoutput>

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Or, you could just the ParagraphFormat() function when displaying the text.
Code:
<cfoutput>#ParagraphFormat(Query.Fieldname)#</cfoutput>



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top