Re: Where did my Hard Returns go?
| From: | Christoph Kunze | Date: | Wed, 01 Mar 2006 14:47:25 +0000 |
| Subject: | Re: Where did my Hard Returns go? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41348@lists.php.net to get a copy of this message | ||
Jeff Broomall schrieb:
Good morning. I created an edit_task page that allows the user to edit tasks for the database. I entered some text and used some hard returns. But when I went to view the tasks (using a PHP script if it matters), the hard returns didn't "take." None of em. All of the text is jumbled together. I checked within the MySQL database and noticed the Hard Returns show in the database (at least while using phpMyAdmin). Must have something to do with PHP? Where did I go wrong??? Thanks. --Jeff HTML doesn't care about "Hard Returns". I think you should transform them into <br />. -> nl2br($text)Hope that helps, Chris