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 > saving parapgrahs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-11-04, 07:24
jonrohan jonrohan is offline
Registered User
 
Join Date: Mar 2004
Posts: 42
saving parapgrahs

Hello,

I have a field that requires paragraphs to be saved. I have tried saving as a blog and text but am still only recieving one lump of text.

Im connecting to the table via ADOdb and php. Its for a website.

Anyidea how I can save paragraphs in the table itself?

Thanks

Jon
Reply With Quote
  #2 (permalink)  
Old 11-11-04, 09:33
pcmansf pcmansf is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
Hello Jon,
Both BLOB and TEXT have the same maximum length which is 65,535 characters. If you need something more than that you can use the flollowing column types:

MEDIUMTEXT or MEDIUMBLOB - 16,777,215 characters
LONGTEXT or LONGBLOB - 4,294,967,295 characters

for more information visit mysql website.

-Eugene
Reply With Quote
  #3 (permalink)  
Old 11-11-04, 09:47
jonrohan jonrohan is offline
Registered User
 
Join Date: Mar 2004
Posts: 42
Perhaps i didn't make my post clear.

When I retrieve the data from the database Im getting one lup of text with no paragraphs. I need it to show the parapgrahs.
Reply With Quote
  #4 (permalink)  
Old 11-11-04, 14:02
pcmansf pcmansf is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
If you output your query in html file then use <pre>DB QUERY OUTPUT</pre> tag to preserve text format. HTML ignores white space.

More info
Reply With Quote
  #5 (permalink)  
Old 11-12-04, 04:59
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Hai...

If you want to preserve the formating for the paragraph which you r storing in the table, you can do so my storing the HTML tags also with the paragraph. So when you retrieve and show the paragraph in the php page, the formatting will be intact.

Hope this helps you....
__________________
Sudar

--
My Blog
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