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

Posted on 2006-05-06
Last Modified: 2008-01-09
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...
Question by:babyboy808
    LVL 7

    Expert Comment

    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?

    Author Comment


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

    LVL 7

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Javascript: Crash Course

    Javascript is not only emerging as the most important language to know, it's flexibility is unique. With Javascript being deployed on the web, mobile and even the desktop this is the one language that all technologists need to know.

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now