Re: [PHP] MySQL field to maintain formatting

2003-01-07 Thread Vernon
That did it thanks! V -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL field to maintain formatting

2003-01-06 Thread Jason Sheets
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

[PHP] MySQL field to maintain formatting

2003-01-06 Thread Vernon
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