php-db | 2001071
Date: 07/03/01
- Next message: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Previous message: tony.mccrory <email protected>: "Re: [PHP-DB] Issue with MSSQL_QUERY()"
- Next in thread: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Reply: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Maybe reply: Micah Stevens: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Maybe reply: Steve Brett: "RE: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am creating a content management page that uses a textarea box to enter a
chunk of text which then is sent into the database into a text-type field.
I am finding that when the data is retrieved to be shown in the browser that
the line feeds are lost. I don't want users to have to know HTML to put
tags in themselves. What's the best way to handle this?
Can I read from the database and insert br's and p's to be put into the
displayed HTML? Or, instead, is there a way to put the br's and p's
immediately into the database when the record is inserted? How can I do
this? How would the string be manipulated?
Thanks for your help,
-Casey
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Previous message: tony.mccrory <email protected>: "Re: [PHP-DB] Issue with MSSQL_QUERY()"
- Next in thread: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Reply: John S. Huggins: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Maybe reply: Micah Stevens: "Re: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Maybe reply: Steve Brett: "RE: [PHP-DB] Handling Linefeeds in MySQL/PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

