Re: storing line breaks in a database
| From: | Bogdan Stancescu | Date: | Fri, 21 Dec 2001 19:45:22 +0000 |
| Subject: | Re: storing line breaks in a database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78510@lists.php.net to get a copy of this message | ||
Yes - implement the Nike solution: Just do it! You have no problems, simply
insert the data from the input box in the table. You may want to display the
results with nl2br() so you can see the line breaks in HTML afterwards.
Bogdan
Robin McKenzie wrote:
> I am storing comments in a MySQL db, and want to know how to include line
> breaks from multi-line input boxes.
>
> Does anyone have any experience of doing this?
>
> Kind Regards,
>
> Robin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net