Most likely it is the browser that is at 'fault'.
try outputting the results from the database surrounded by PRE /PRE tags in the HTML code.
That should keep whitespace formatting as it was entered.
Try looking in the source of your webpage (rightclick->view source) and see wether the text was received correctly. If it is correct in the source (which means it was interpreted and sent correctly by the server) using PRE tags should work.
Welshbyte's suggestion of nl2br() should work as well. It puts BR tags in the output, forcing the browser to start a new line.
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. "
- Murphy MacManus (Boondock Saints)
|