crazymao Posted March 17, 2010 Share Posted March 17, 2010 so im trying to output information from my sql database in a paragraph just like it was entered. by default it puts everything in a single line but i dont know how to change it. i tried changing the data type, different codes - dont ask which ones i deleted them, i tried searching, other forums but no answers. please please help. thank you :confused: Link to comment https://forums.phpfreaks.com/topic/195529-outputting-info-from-databse-in-a-paragraph/ Share on other sites More sharing options...
scvinodkumar Posted March 17, 2010 Share Posted March 17, 2010 use like this <?php echo nl2br($content); ?> Link to comment https://forums.phpfreaks.com/topic/195529-outputting-info-from-databse-in-a-paragraph/#findComment-1027416 Share on other sites More sharing options...
crazymao Posted March 17, 2010 Author Share Posted March 17, 2010 thanks, i found that before but i just got it to work Link to comment https://forums.phpfreaks.com/topic/195529-outputting-info-from-databse-in-a-paragraph/#findComment-1027683 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.