[thelist] HTML embeded in database MySQL/PHP

chip.gibson chip.gibson at gmail.com
Mon Apr 18 14:51:13 CDT 2005


Firstly sorry for asking this, I do know that storing HTML in a database 
is a bad idea. However I have inherited a MySQL database which does just 
that.

When trying to display the data with echo or print the HTML is ignored, 
if I echo the data to the default value of a textarea in a form, the 
HTML formating works.

I need to output the formated text in an easily printable format, the 
size of the data in the field varies enormously so simply using a fixed 
size textarea would not be practical.

This is an example of the type of data stored:

Chris Gibson<BR> Bla Bla Bla <BR> testing <BR>

Thanks

Chris Gibson


More information about the thelist mailing list