Connecting Tech Pros Worldwide Forums | Help | Site Map

How to display text sql values? (Text running off screen)

Familiar Sight
 
Join Date: Sep 2007
Posts: 221
#1: Jul 28 '08
I have some text fields in my database, and I'm displaying them on the screen, but no matter what type of element I nest the output in, the text is being displayed on one huge line. How can I get this to display in an element in a multi-line format??

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jul 29 '08

re: How to display text sql values? (Text running off screen)


Replace the newlines with <br> tags. You can look for #chr(10)##chr(13)# in your input.
Reply


Similar ColdFusion bytes