carraras Posted July 1, 2006 Share Posted July 1, 2006 I am trying to use [code]$myrow["body"]=str_replace("\n","<br>",$myrow["body"]);[/code]I am changing any \n to a br.The [color=blue]$myrow["body"][/color] is stored in MySQL as a [color=purple]Blob[/color].Do I need to use another function? Or what would be the correct way to do this. Quote Link to comment https://forums.phpfreaks.com/topic/13405-str_replace-with-a-blob/ Share on other sites More sharing options...
Orio Posted July 1, 2006 Share Posted July 1, 2006 [url=http://www.php.net/manual/en/function.nl2br.php]nl2br()[/url]Orio. Quote Link to comment https://forums.phpfreaks.com/topic/13405-str_replace-with-a-blob/#findComment-51749 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.