hi
when the user enter the data i tried it storing in the db and its working.
the datas are getting stored as
<p>This is some <strong>sample text</strong>. You are using</p>
when i display i want to display in html format
lydia21
9
Junior Poster
Recommended Answers
Jump to PostAfter assigning the string from the db field to a variable such as
$row = mysql_fetch_array($result); $var = $row["field"];
Try using the html_entity_decode function like so:
$htmlvar = html_entity_decode($var); echo $htmlvar;
This page will provide reference for this:
Jump to PostLet me do some research on this, what version of FCKEditor and PHP are you using? The code example above looks really old.
All 8 Replies
Evancool
3
Newbie Poster
lydia21
9
Junior Poster
lydia21
9
Junior Poster
Evancool
3
Newbie Poster
lydia21
9
Junior Poster
Evancool
3
Newbie Poster
Evancool
3
Newbie Poster
Evancool
3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.