I store things in it using full text
I store it using a variable like so
$value = '<b><center><fontcolor= "blue">This is the formated text</b></center></font>';
$query = "instert into table ('$value')";
mysql_query($query);
I use formated text alot for my forum.
Also it is possible to simply output it the text using concatenated strings with php. Its up to what you're using the text for.
This is one way, however you will be unable to use this value in another place with another color settings. Instead I would recommend you store plain text data into your database and use some simple CSS rules where you need the text to be in different color.
You can make the following:
1. Store value $formatted_text = This is the text to be returned in red.
2. Retrieve it in your php page like this: [php]echo '<p style="color: red">'.$formatted_text.'</p>'; [/php]and you will get it right
if you want you can use a class for this statement and add a lot of other formatting stored in an external file.
In case however you have some text and you want to store only one word with formatting, you better do the following:
[php] $formatted_text = 'This is the text with <span style="color: red;">red words</span> in the middle.';[/php]
When you retrieve it in your php like this:
[php]echo '<p>'.$formatted_text.'</p>';[/php]
you will have a paragraph with "red words" being the only red words inside the text.
If you are not familiar with CSS go to
http://www.w3schools.com/ and learn it for free from the W3C. Good luck!