PHP && Mysql

Discussion in 'Software' started by man_im_bored, Aug 3, 2004.

  1. man_im_bored

    man_im_bored Private E-2

    mk,

    basically what i need to know, lets say you have a mysql table, with a field that contains:

    "hi hey yeah wooo

    word yo wassup?"


    how do i tell php to insert <BR> where there is a new line in that field so that if I echo it, I don't get

    "hi hey yeah wooo word yo wassup?"

    But rather

    "hi hey yeah wooo<BR>
    <BR>
    word yo wassup?"


    (You'll have to excuse my interesting way of explaining things...)
     
  2. Kodo

    Kodo SNATCHSQUATCH

    in ASP we just replace the the new line character with <br /> .. I'm sure the process is the same or similar in PHP. Look for a replace function.
     
  3. Wookie

    Wookie Sergeant Major


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds