View Single Post
Old 07-25-07, 07:52 AM   #12
ViN86
 
Join Date: Mar 2004
Posts: 15,486
Default Re: Save coding to database

remember that \ is the escape character in PHP, so when you want to use a character in a string like a quotation, you need to use \" - so maybe its escaping the \ character and displaying just "rn".

if this is the case, wouldnt it be "\\r\\n" ghost?

try...
Code:
$headline=mysql_real_escape_string(str_replace("\\r\\n","<BR>",$_POST['headline']));
ViN86 is offline   Reply With Quote