Re: Line breaks in output
| From: | JJeffman | Date: | Tue, 20 Mar 2001 00:12:27 +0000 |
| Subject: | Re: Line breaks in output | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7619@lists.php.net to get a copy of this message | ||
Create a variable to concatenate the item values adding a "\n" character
between them :
$result = $item1."\n".$item2."\n".$item3 ;
.....
echo("<input name=text value=".$result . ">");
HTH
Jayme.
-----Mensagem Original-----
De: Martin Skjöldebrand <chimbis@skjoldebrand.org>
Para: <php-db@lists.php.net>
Enviada em: segunda-feira, 19 de março de 2001 17:47
Assunto: [PHP-DB] Line breaks in output
> Newbie here.
>
> How do I get line breaks in output from a database?
> I have a list of things in a file, like: item1`
item2`item3
> (etc)
> I want them displyed in a textarea as:
> item1
> item2
> item3
>
> Probably very simple, haven't got that far in my book yet.
>
> Martin S.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>