Page 1 of 1

Text from DB to HTML

Posted: Tue Apr 13, 2004 3:51 am
by jidospod
Hey all,

sorry if this seems like such a novice question, but I have DB tables, people can submit say a story.. and its stored in the DB.. once we review it I want it to get wrote to a static storyxxx.html file. I have the making the file down pat, BUT.. how do I parse the text from the DB into HTML?

For example:

"this is part of the story, it is nice.

This is paragraph two too".

In this situation if I just dump it to HTML its obviously all blank, etc.. how can I make this parse the TEXT from the DB to do the proper <P>, etc...

I appologize if this is discussed somewhere else or it already exists.. I searched for it :)

Posted: Tue Apr 13, 2004 4:23 am
by patrikG
There's a nice tutorial by Kevin Yanks about this at Zend: http://zend.com/zend/tut/tutorial-yank.php

Posted: Mon Apr 19, 2004 12:49 am
by jidospod
Thanks muchly, will be sure to read :)