php – Add formatted text box to a form and save to a MYSQL database-ThrowExceptions

Exception or error:

I need to add a text box to a form with facility to format text (like bold/ italic, add tables and so on) to my web page (PHP). And I want to save it to a MYSQL database as it is. So later if I load the page, the text should be there with the formatting. How can I achieve this? Or is there any way to copy past a formatted text from MS word to a text area with formatting and save in a database?

This is a similar text area

How to solve:

Lot of plugins,libraries available in google check it

  1. CK EDITOR
  2. Tiny MCE
  3. wysiwyg-editor

Answer´╝Ü

You can use libraries like

  • CK EDITOR
  • SUMMERNOTE

These text box provides formatting text and saved into database as HTML format.

Leave a Reply

Your email address will not be published. Required fields are marked *