Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    insert and retrieve text

    Hi

    Im inserting formatted text using textarea to mysql field and text is looks like

    Code:
    first line
    second line
    third line
    once i retrieve this text, its looks like

    Code:
    first linesecond linethird line
    how to keep the format when retrieve?


    Any help would be great, sorry for the language errors

    Thanks

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Are they being echoed within a loop? I notice there are no spaces between the 3 lines, which would be the case if you were viewing it within a browser with no break tags.

    Otherwise, you are echoing each line with no new line characters in between.

    Care to show us your code?
    Last edited by kbluhm; 12-03-2010 at 04:54 PM.

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by kbluhm View Post
    Are they being echoed within a loop? I notice there are no spaces between the 3 lines, which would be the case if you were viewing it within a browser with no break tags.

    Otherwise, you are echoing each line with no new line characters in between.

    Care to show us your code?
    no loop since i retrieve one raw
    im echo it back to a textarea
    Last edited by extremed; 12-03-2010 at 05:16 PM.


  •  

    Posting Permissions

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