Possible Duplicate:
Replacing a newline with a <br> – PHP
I am presenting a table with information from my SQL database. When I insert into MySQL database I add:
\n
When I ‘draw’ the database I can just replace it with:
<br>
and it should add a new line. Here’s what I tried and it doesn’t seem to work. It doesn’t replace the \n with <br> and I don’t see what I did wrong.(Here is the code thats in the following picture if you’d like to test this yourself; http://pastebin.com/PgWKD5Mg)

But that doesn’t seem to work. It doesn’t replace the strings, but if i replace $row['Info'] with something like Hello \n Test it does print hello and Test onto seperate lines, that code renders this:

Note: nl2br function also does not work, and this does the same as that regardless
try
str_replace("\\n", "<br>", $row['Info']);