Jump to content

Archived

This topic is now archived and is closed to further replies.

MadDawgX

Formatting

Recommended Posts

Hey there.

I've got a comment type of system made where users can submit a form and its added to a database, but it always comes out as one big paragraph.

[b]Eg:[/b]

This thing is Great.

Awesome work!

- So-and-So

[b]Would come out as:[/b]

This thing is Great. Awesome work! - So-and-So

What do I need to do so it'll be in its paragraphs?

Share this post


Link to post
Share on other sites
When you extract it from the db to display on the page use

echo nl2br($db_comments);

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.