Hard to explain problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rahil
Forum Newbie
Posts: 17
Joined: Sun Feb 15, 2004 2:24 pm
Location: Toronto, Ontario, Canada

Hard to explain problem

Post 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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

try [php_man]nl2br[/php_man] function.
Post Reply