531reads

mysql_real_escape_string and new linesview story

So after some advice here and in general web surfing, I've started using mysql_real_escape_string over addslashes, aaaand.... I've run into a problem I'm not sure how to handle. When I enter a multiline string into the database, mysql_real_escape_string replaces the \r\n in the string to a literal \r\n (that I can see in the mySQL data). I note that previously, with addslashes, this was not the case (I saw it as newlines rather then the characters). So of course, when I go to print out this data, and remove slashes, instead of newlines, I'm getting: blah blah blahrnbl

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.
CAPTCHA
Human?
Image CAPTCHA
Enter the characters shown in the image.