Hello,
I am having a rich text editor in my website it works fine when formatting text like bold etc. but the problem is that when i retrieve data from database there is no bold, italic or underline etc.Please help me. you can find the script here.
http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm

Hi there,
I think the problem probably lies with your sanitizing methods.
When you insert (or update) the data into the database, make sure that you run the function "addslashes()" on the text from the editor before putting it into your sql. And then when you retrieve it from the database, run the "stripslashes()" method on the text.
That should sort your problem out.

It doesn't work.It only displays text without any kind of formatting the user has done.

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.