#1
  1. No Profile Picture
    AndrewT
    Guest
    Devshed Newbie (0 - 499 posts)
    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
  2. #2
  3. No Profile Picture
    Goral
    Guest
    Devshed Newbie (0 - 499 posts)
    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).]
  4. #3
  5. No Profile Picture
    AndrewT
    Guest
    Devshed Newbie (0 - 499 posts)
    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

Similar Threads

  1. Relative Path
    By MrT in forum Apache Development
    Replies: 2
    Last Post: February 12th, 2004, 07:05 AM
  2. Replies: 1
    Last Post: February 8th, 2004, 02:59 PM
  3. Opening file, finding line, then inserting new line
    By mach5 in forum Perl Programming
    Replies: 2
    Last Post: February 5th, 2004, 12:00 AM
  4. line break in field string
    By badjo in forum HTML Programming
    Replies: 1
    Last Post: February 4th, 2004, 02:57 AM
  5. Replies: 2
    Last Post: January 30th, 2004, 10:11 AM

IMN logo majestic logo threadwatch logo seochat tools logo