Re: Formating field type text in HTML
| From: | Joe Van Meer | Date: | Tue, 26 Feb 2002 20:46:12 +0000 |
| Subject: | Re: Formating field type text in HTML | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17311@lists.php.net to get a copy of this message | ||
Hi there:)
Take a look at nl2br() function ..it converts \n to <br> tag
HTH Joe :)
Jairo Tcatchenco <jairo@cda.sp.gov.br> wrote in message
news:3C7BE28A.3CC86D5C@cda.sp.gov.br...
> Hi all!
>
> I have a table in postgres with a field type text, where I can
> store a formated text. When I take this field to my page, there's no one
> html tag inside the content displayed. Can I read the content of the
> field, line by line, putting a <br> at the end? How can I do something
> like this?
> Inside the database, I used the option \H, to see the result in
> HTML. It was ok, with the <br> in the right place. How can I use this
> output in my page? Is it possible to pass the \H to the database using
> php?
>
> Thanks a lot.
>
>
> --
> Jairo Tcatchenco
> jairo@cda.sp.gov.br
> Coordenadoria de Defesa Agropecuária - CDA
> Secretaria de Agricultura e Abastecimento do Estado de São Paulo -
> SAA/SP
>
>