Hi, it works now! Thank everyone very much for the great help, especially 
Atom and others who helped me out.

Have a wonderful day!

Best Regards,
David

>From: <[EMAIL PROTECTED]>
>To: david klein <[EMAIL PROTECTED]>
>Subject: Re: [PHP] How to handle multiple lines in PHP?
>Date: Tue, 16 Jan 2001 17:07:01 +0100 (CET)
>
>Hello David!
>
> > Atom,
> >
> >     Thank you very much for the help.
> >     I am using MySql, actually, in the database, there is no "\n".  I
> > debugged it a little bit more, and found the followings:
> > It seems that PHP took the three lines as one line (I think it can't
> > recognize "\n" from the textarea input, and convert it automatically 
>into  a
> > space char.
>Ok. I understand your problem. I created a Forum program, where I use this
>HTML tag as <textarea>.
>
>Solution:
>$szoveg contains your line from DB
>
>123 456 789
>
>$szoveg=ereg_replace("\n","<br>",$szoveg);
>
>Result is
>
>123
>456
>789
>
>:-)
>
>bye,
>
>Atom
>
>
>
>
>
> >     More idea?
> > Thanks again for helping me!
> > David
> >
> >
> > >From: <[EMAIL PROTECTED]>
> > >To: david klein <[EMAIL PROTECTED]>
> > >Subject: Re: [PHP] How to handle multiple lines in PHP?
> > >Date: Tue, 16 Jan 2001 16:47:33 +0100 (CET)
> > >
> > > > after I get it through some php scripts, and put it into database, 
>later
> > >on,
> > > > I try to display it, but it becomes(only one line):
> > > >
> > > > 123 456 789
> > > >
> > > > Does anyone know how to handle this? One idea is to convert the <END 
>OF
> > >LINE
> > > > CHAR> to "<BR>" before putting it into the database, but how can we
> > >detect
> > > > the <END OF LINE CHAR> in PHP?   Or is there any other ways?
> > >When you take it from database change \n to <BR> etc...
> > >
> > >Atom
> > >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General 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