Hi,
I have a couple of textbox's. When I store them into my mysql database they retain the text formatting. When I display them in a table on my site they lose the formatting. I used nl2br() to retain the line spacing.
Problem:
The spacing in between words is limited to one, and the spacing (if any) at the beginning of the textbox gets lost altogether. What can I do to retain the whitespace? I figure there is some kind of function like nl2br for such things but I cannot find one.
Also:
Is there maybe a better way of storing and pulling text from a mysql database so that all these character conversions do not need to happen in order to retain the text formatting?
Any help is appreciated,
- ShnaZZ
I have a couple of textbox's. When I store them into my mysql database they retain the text formatting. When I display them in a table on my site they lose the formatting. I used nl2br() to retain the line spacing.
Problem:
The spacing in between words is limited to one, and the spacing (if any) at the beginning of the textbox gets lost altogether. What can I do to retain the whitespace? I figure there is some kind of function like nl2br for such things but I cannot find one.
Also:
Is there maybe a better way of storing and pulling text from a mysql database so that all these character conversions do not need to happen in order to retain the text formatting?
Any help is appreciated,
- ShnaZZ