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 Link to comment https://forums.phpfreaks.com/topic/276297-nl2br/ Share on other sites More sharing options...
kicken Posted March 29, 2013 Share Posted March 29, 2013 Use concatenation rather than embedding the variable in the string. $returnHtml .= "<div class='imglabel'>".nl2br($row['product_description'])."</div>"; 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......................... Link to comment https://forums.phpfreaks.com/topic/276297-nl2br/#findComment-1421857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.