Reply
mysql db - rich text
Old 01-02-2008, 05:13 PM mysql db - rich text
coldturkey's Avatar
Extreme Talker

Posts: 194
Name: Rachel
Location: Spain
I am uploading text into my mysql database using a rich text box - like this one im writting in. But when it is shown on the page - it comes up not taking into account the html in the rich text box.

What should it be set as in the data base - maybe i have it wrong!

Thanks
Rachel
__________________
coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
When You Register, These Ads Go Away!
     
Old 01-07-2008, 06:50 AM Re: mysql db - rich text
Extreme Talker

Posts: 223
Location: United States
This is most likely not a database problem. MySQL doesn't care if you enter rich text, HTML, or plain text. The text you insert into a table only needs to be escaped (if you're using PHP, use mysql_real_escape_string().)

The field where the data is being inserted should probably be set as TEXT.
frost is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mysql db - rich text
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11037 seconds with 13 queries