That did it thanks!
V
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Assuming you are using a to allow your users to
input their text you need to either use the nl2br (converts new lines to
) or use tags, following are short examples:
print nl2br($data); or
print '';
print $data
print '';
You can find out more about the nl2br function at
http://www.php.net/man
I'm having users post messages to a MySQL database records and want to
retain the formatting (such as carriage returns and so forth).
I have everything actually working all except that the formatting. Messages
are being posted but when they are returned they lack the carriage returns.
I'd like to
3 matches
Mail list logo