SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Grand Rapids, MI
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a textarea that users enter information into, I have the WRAP="VIRTUAL" tag on it, and it works fine for entering. However, when it goes to the Mysql database, it loses any line breaks that it appears to have. When I retrieve the information, its just one long string of text. How can I get around this?

    Mike

    ------------------
    My new position : Target for Middle Management Hostility.

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2000
    Location
    Grand Rapids, MI
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found the answer myself after a couple days looking.

    Hopefully this will help anyone else who wants to replace the line returns in a BLOB to <BR> to keep the line returns "in the text".

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    $text = ereg_replace(10,"&lt;br&gt;",$text);
    [/code]
    Mike

    [This message has been edited by mmccue (edited February 29, 2000).]


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •