Help replacing carriage returns

hey guys,

I submitted a text box to my database, it has a few pargraphs of texts. when i come to show(echo out) the text it gets rid of the carriage returns. I figured i need to replace the carriage returns with <BR>

this is what i came up with, I’ve tried putting the code but it doesnt seem to work. any ideas?

$row[2] = ereg_replace(" “,”<BR>",$row[2]);

Hi Darren, see [fphp]nl2br/fphp. :wink: