Jump to content

Archived

This topic is now archived and is closed to further replies.

carraras

str_replace with a blob

Recommended Posts

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.

Share this post


Link to post
Share on other sites
[url=http://www.php.net/manual/en/function.nl2br.php]nl2br()[/url]

Orio.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.