Jump to content

[SOLVED] how to dispay crlf?


coderb

Recommended Posts

Hi All,

 

Have a question, probably quite simple but need help please.

I have a database text column containing sentences with line breaks (crlf). When used in an input field type=textarea, the line breaks are displayed correctly. But when I echo that value a table as follows :

echo '<td>'.$rowSQL['mycontent'].'</td>';

 

it loses the line breaks. How do I keep the crlfs?

 

thanks,

Link to comment
https://forums.phpfreaks.com/topic/84991-solved-how-to-dispay-crlf/
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.