i tried ereg_replace('\n', '<Br>', $string); which didint work (replace all of my n's with <Br>) i also tried ereg_replace('\n', '<br>' $row[2]); which didnt work thanks for any help 🙂
$string = nl2br($string);
RTFM
The actual problem with your replace is that you need to use double quotes around any \n, \r, \t characters (etc). This would do what you need:
$string = str_replace("\n","<br>",$string);
You could also use nl2br() as Ben has suggested: http://download.php.net/manual/en/function.nl2br.php
Hope this helps.
-Josh B