If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > No Line Breaks in BLOB or TEXT data types

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-04, 19:08
goldfishSally goldfishSally is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
No Line Breaks in BLOB or TEXT data types

Hi,

I have set up a database that is going to accept fiction and poetry submissions. I need to find out the best way to read these submissions back to a web page that will display line breaks correctly. Right now I just left them as BLOB data types, and line breaks are not displayed when sent back to the web page.

I hope this is a simple question. Someone please help!

Examples:
www.wordstudios.net/givewriting.php

www.wordstudios.net/readentries.html
Reply With Quote
  #2 (permalink)  
Old 10-23-04, 10:28
tom00 tom00 is offline
Registered User
 
Join Date: Oct 2004
Posts: 4
use nl2br() function in PHP script, it will convert all \n characters to <br>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On