[PHP-DB] Re: retaining and displaying line returns in a text field

2006-01-08 Thread El Bekko
Frank Flynn wrote: This is an HTML issue (not PHP or MySQL) that is HTML ignores carriage returns (and most other white spaces). There are two simple solutions: use pre tags: echo pre $rmks/pre; Or replace the \n with br $newRmks = str_replace ( \n, br, $rmks ); echo $newRmks; You

[PHP-DB] Re: retaining and displaying line returns in a text field

2006-01-06 Thread Frank Flynn
This is an HTML issue (not PHP or MySQL) that is HTML ignores carriage returns (and most other white spaces). There are two simple solutions: use pre tags: echo pre $rmks/pre; Or replace the \n with br $newRmks = str_replace ( \n, br, $rmks ); echo $newRmks; You can do this going