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 <[EMAIL PROTECTED]>
Para: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to