PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 8th, 1999, 08:14 PM
AndrewT
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Ok, I inserted a value into a column that contains three line breaks or "hits of the enter key". When I print that variable as regular text the line breaks are no where to be found. However, when I print it into a textbox the line breaks work just fine and it skips lines like it's supposed to.

So how can I make it work like that as just regular text? Help would be very much appreciated!

Andrew

Reply With Quote
  #2  
Old November 9th, 1999, 07:21 AM
Goral
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you want to print your text on html page you should use nl2br() function, it converts line breakes to <br>'s.

Also you can put your text inside html <pre></pre> tags.

Goral

[This message has been edited by Goral (edited 11-09-99).]

Reply With Quote
  #3  
Old November 9th, 1999, 03:37 PM
AndrewT
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks a ton! I needed that for making a lot of the scripts that I will be using on my site that is at:

http://www.gzo.com/

Just in case your interested =)

Andrew

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Line Break Problems!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap