Jump to content

long text help


imarockstar

Recommended Posts

MySQL will store the text with linebreaks as either \r\n or \n.  in order to properly format it for display in HTML, you'll need to convert those "\n" characters to "<br />" tags, as HTML ignores whitespace.  PHP has a function to do just that:

 

nl2br()

 

give it a whirl.

 

EDIT:  beaten to the punch, but i'm putting this here anyway.

Link to comment
https://forums.phpfreaks.com/topic/56070-long-text-help/#findComment-276926
Share on other sites

Archived

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

×
×
  • Create New...

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.