glen-rogers Posted March 29, 2013 Share Posted March 29, 2013 Simple I'm sure, but how do I use nl2br with this line?? $returnHtml .= "<div class='imglabel'>{$row['product_description']}</div>"; Thanks Quote Link to comment https://forums.phpfreaks.com/topic/276297-nl2br/ Share on other sites More sharing options...
Solution kicken Posted March 29, 2013 Solution Share Posted March 29, 2013 Use concatenation rather than embedding the variable in the string. $returnHtml .= "<div class='imglabel'>".nl2br($row['product_description'])."</div>"; Quote Link to comment https://forums.phpfreaks.com/topic/276297-nl2br/#findComment-1421845 Share on other sites More sharing options...
glen-rogers Posted March 29, 2013 Author Share Posted March 29, 2013 Thanks for that, all sorted now......................... Quote Link to comment https://forums.phpfreaks.com/topic/276297-nl2br/#findComment-1421857 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.