Page 1 of 1

Hard to explain problem

Posted: Sat Feb 28, 2004 12:32 pm
by Rahil
I have a news script, where I can type in some news, it goes in the db, and another page echos the stuff. Lets say this is what I typed:

Code: Select all

The weather today is really nice.

Hello world.
On the actual news page, where it echos what ever is in the db, it won't show the space (line) in the middle. Instead, it will show this:

Code: Select all

The weather today is really nice.Hello world.
How can I make it so that it boes show that space/line in the middle, without using HTML?

Posted: Sat Feb 28, 2004 12:38 pm
by Weirdan
try [php_man]nl2br[/php_man] function.