Page 1 of 1

how to format news layout

Posted: Wed Dec 15, 2004 11:21 am
by wenquxing
I am creating a web page to get news from mysql by using php, the problem is the original news format is like:

aaaa

aaaaaaaa

aaaaaaaaa
but when I get it from mysql, and display it on the web page, it comes like:
aaaaaaaaaaaaaaaa
aaaaaaaaaa

anyone can tell me how to keep the format the same as the original one?
thanks.

Posted: Wed Dec 15, 2004 11:43 am
by vigge89
check out the [phpman]nl2br[/phpman]() function

Posted: Wed Dec 15, 2004 12:21 pm
by wenquxing
thank you vigge89
now the problem is solved.