Thread: Lines Breaks

    #1
  1. No Profile Picture
    AndrewT
    Guest
    Devshed Newbie (0 - 499 posts)
    Well I know that I can use <pre> and </pre> to recognize the line breaks from a MySQL output. But that also prints the " " before the " ' ". So the way I see it, there are two ways of fixing this.

    1) Stripping the slashes from it somehow.

    2) Using some array that was named something like "n2br". But I can't remember anymore.

    So your help would be very appreciated.

    Andrew
  2. #2
  3. No Profile Picture
    donarb
    Guest
    Devshed Newbie (0 - 499 posts)
    You didn't mention what interface you're using.

    If it's PHP, there is a function called stripslashes() that will remove the escaped backslashes.

    You also mentioned n2br, there is also a PHP function called nl2br(), which converts newlines to <br> tags.

Similar Threads

  1. Reading as many lines from an FFDB as exist?
    By Duminas in forum Perl Programming
    Replies: 2
    Last Post: October 3rd, 2003, 11:49 PM
  2. reading certain lines in a txt file
    By English Guy in forum Perl Programming
    Replies: 7
    Last Post: July 30th, 2003, 10:48 AM
  3. printing required lines to a file.
    By prince in forum Perl Programming
    Replies: 5
    Last Post: July 19th, 2003, 10:29 AM
  4. How can I delete multiple lines at once in a text file?
    By jobesd in forum PHP Development
    Replies: 4
    Last Post: February 15th, 2002, 06:48 PM
  5. encoding line breaks in php built text file
    By bakedbean in forum PHP Development
    Replies: 1
    Last Post: November 20th, 2001, 09:25 AM

IMN logo majestic logo threadwatch logo seochat tools logo