Jump to content

Archived

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

krone

Carriage Return

Recommended Posts

Hi.

ive just started creating a forum.. for inserting post/thread. it does not read carriage returns. is there a function that i can use that will read carriage returns and put it in mySql accordingly?

the forum post/thread elements are "TEXT" data type in mySql.

eg.
if i post
one
two
three

it comes out in the post as "one two three"

;D cheeers

Share this post


Link to post
Share on other sites
It is being inserted into the database fine. However, you'll need to use [url=http://php.net/nl2br]nl2br[/url] when displaying the data.

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.