Hello there,
I'm using mysql as a back end of my project and am using PHP for server side scripting. I want to insert a formatted text into my mysql table. How can I create a text field which accept a formatted text and save it to the database.
Thank you for your help,

You may want to try a tool such as TinyMce or CkEditor.

Thank you very much i get it and it works well. But can customize the tool bar? for example if I want to remove some icons from the tool bar.

Yes, you can specify all you want in a config file. See the docs.