Jump to content


Photo

str_replace with a blob


  • Please log in to reply
1 reply to this topic

#1 carraras

carraras
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 01 July 2006 - 07:49 PM

I am trying to use
$myrow["body"]=str_replace("\n","<br>",$myrow["body"]);
I am changing any \n to a br.

The $myrow["body"] is stored in MySQL as a Blob.

Do I need to use another function? Or what would be the correct way to do this.

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 01 July 2006 - 07:50 PM

nl2br()

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users