Re: saving TEXTAREA data into mysql database
| From: | Artoo | Date: | Sat, 21 Jun 2003 12:04:42 +0000 |
| Subject: | Re: saving TEXTAREA data into mysql database | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152383@lists.php.net to get a copy of this message | ||
Thanks,
Is it better to use that function before the INSERT query and save it to the
database like that or use that nl2br() function while displaying the results
of the SELECT query,
Thanks agian.
Artoo
"Catalin Trifu" <catalin@isp-software.de> wrote in message
news:20030621105243.7395.qmail@pb1.pair.com...
> Hi,
>
> See the manual nl2br() function.
> http://www.php.net/manual/en/function.nl2br.php
>
> Cheers,
> Catalin
>
>
> "Artoo" <artoo_s@hotmail.com> wrote in message
> news:20030621075204.18663.qmail@pb1.pair.com...
> > Hey,
> >
> > How do you save the data from a TEXTAREA of a form into a mysql database
> so
> > that when you retrieve the data later you get the same format that the
> user
> > entered
> >
> > EXAMPLE
> > user enters the following and cliks save
> >
> > Line 1 testing
> > Line 2 TEST
> >
> > Line 4 test
> >
> > line 5 test
> >
> > test
> >
> > testing
> >
> > result when displaying data
> >
> > Line 1 testingLine 2 TESTLine 4 testline 5 testtesttesting
> >
> >
> > How do I get it so the format is the same?
> >
> > Thanks
> >
> >
>
>