[thelist] HTML embeded in database MySQL/PHP

Christian Heilmann codepo8 at gmail.com
Wed Apr 20 09:48:40 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.
> 
> I have to ask - why would storing HTML in a database be a bad idea?
> Isn't that what most content management systems do?

Bad ones, yes. 

The idea is to keep presentation separate from content, if you use
visual HTML like linebreaks that is not a given.

-- 
Chris Heilmann 
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/  
Binaries: http://www.onlinetools.org/


More information about the thelist mailing list