mrzalt Posted May 25, 2007 Share Posted May 25, 2007 Hi I got a little irritating problem. I got a send mail function on my website so each member can send mail to each other. When i write a mail squeeze all the text into one line. In the databeas its looks ok with new lines and so on. I get the info from database inte a php file and write it in a html file. a little file look. msg.php >> STemplate::assign('body', $rs->fields['body']); and html file msg.tpl >> <td colspan=2 valign=top><b>Details: </b>{$body} Its the body content i want as it is in my database (mysql) Anyone ? // RIkard Quote Link to comment https://forums.phpfreaks.com/topic/53002-solved-one-single-paragraph-from-database/ Share on other sites More sharing options...
per1os Posted May 25, 2007 Share Posted May 25, 2007 www.php.net/nl2br maybe? Quote Link to comment https://forums.phpfreaks.com/topic/53002-solved-one-single-paragraph-from-database/#findComment-261834 Share on other sites More sharing options...
mrzalt Posted May 26, 2007 Author Share Posted May 26, 2007 Yes i was into that but i dont have a clue where or how i will write it. pliiis some help on the way Quote Link to comment https://forums.phpfreaks.com/topic/53002-solved-one-single-paragraph-from-database/#findComment-261896 Share on other sites More sharing options...
per1os Posted May 26, 2007 Share Posted May 26, 2007 msg.php >> STemplate::assign('body', nl2br($rs->fields['body'])); Quote Link to comment https://forums.phpfreaks.com/topic/53002-solved-one-single-paragraph-from-database/#findComment-261909 Share on other sites More sharing options...
mrzalt Posted May 26, 2007 Author Share Posted May 26, 2007 hmm niiiiiice So little and so much Thanks frost110 i think just solved a very annoying problem in my head Quote Link to comment https://forums.phpfreaks.com/topic/53002-solved-one-single-paragraph-from-database/#findComment-261974 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.