Page 1 of 1

how can i show things under html tags coming from database ?

Posted: Mon Oct 15, 2007 5:16 am
by djdon11
Hello everyone...

i am using FCK editor on my website , in which user can write , insert smiley's and can use anchor,links.. & all this data goes into the database in the form of html tags like this - >

Code: Select all

hello this is testing of FCK editor
src="/FCKeditor/editor/images/smiley/msn/regular_s
mile.gif" alt="" />
href="http://signsofgreatness.com">signsofgreatnes
s.com hello
everyone
but when i displayed this data on to the page than again it comes as it is but i need all the visual things instead of these tags ... means smiley , links anchor ,color's

can anybody help me that how to convert this html tags into their means ......

Thanks

Posted: Mon Oct 15, 2007 7:35 am
by John Cartwright
As you see from the markup some things have been stripped away.

How are you inserting the html into the database?

in this way ..

Posted: Mon Oct 15, 2007 7:39 am
by djdon11
hi sir thanks for reply ..

for inserting this things into database i just use the code written below

Code: Select all

$sValue = stripslashes( $_POST['FCKeditor1'] ) ;
$sValue=str_replace("'","´",$sValue);
$than this $sValue inserted into the database ......

Posted: Mon Oct 15, 2007 7:44 am
by superdezign
At some point, you are losing the start of your tags... Look at other things happening to that value. Try echoing it at different points in the code to find out where the change occurs.