faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 25 people (60%) answered Yes
Recently 3 of 10 people (30%) answered Yes


How can I keep text formatted after it has been inserted into the DB?

Apr 23rd, 2000 17:21
Espen Holje, Chris N,

If I understand your question, you mean "how to correcly display text 
formatted with HTML-tags from a database"?
If so, you can just load the HTML-code from your db and print it to a 
form with a textarea box with the command:
This function will convert all special HTML characters.