RE: [PHP] CR in MySQL?
| From: | Dan Joseph | Date: | Fri, 30 May 2003 16:10:39 +0000 |
| Subject: | RE: [PHP] CR in MySQL? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149570@lists.php.net to get a copy of this message | ||
> How do you put a carriage return in a MySQL database and have it
> display as a line break on the web page?
str_replace ("\n", "<br>", $var);
-Dan Joseph