• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 884
  • Last Modified:

How do I transfer data from Fckeditor to my MySQL DB through PHP

Hi Experts,

I have a form on my website that uses fckeditor, I can transfer the data to the database no problem,
but when I output the data from the database again, all the data is unformatted (which i used fckeditor
to format)...

How do I retain the formatting when displaying the data from MySQL?

thanks guys...
0
babyboy808
Asked:
babyboy808
  • 2
1 Solution
 
dttriCommented:
Hello,
Have you tried html_entity_decode() to change the HTML entities to their applicable characters so that it will be displayed properly on the browser?
0
 
babyboy808Author Commented:
Hi,

No, how would i implement this, eg: what file would i change etc.

thanks...
0
 
dttriCommented:
Hi,
After you select the data from your table (for example, you save it in a variable $str), use "echo html_entity_decode($str);" to output it to the browser.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now