Hi,
I got the answer from one earlier mail. I used nl2br(). It does just
what I want.
Adrian
On Fri, 24 Aug 2001, Adrian D'Costa wrote:
> Hi,
>
> I am creating a program for a newspaper to publish their article
> online. There is a form what allows them to cut and past from their
> editors (word, pagemaker, staroffice). The data is being entered
> correctly.
>
> The problem is when I try and get the data from the table the whole matter
> scrolls off the screen. I need it to be formatted as the client cut and
> pastes it (headings, paras, etc). Below is my table and part of my
> program.
>
> mysql> desc newsarticles;
> +--+--+--+-+++
> | Field| Type | Null | Key | Default| Extra |
> +--+--+--+-+++
> | id | int(5) | | PRI | NULL | auto_increment |
> | nid | int(5) | | MUL | 0 ||
> | headline | varchar(100) | | |||
> | article | mediumtext | | |||
> | date | date | | | -00-00 ||
> | imgpath | varchar(200) | YES | | NULL ||
> +--+--+--+-+++
>
>
>
> headline; ?>
>
>
>
> headline; ?>
> description; ?>
>
>
> face="Arial" size="2" color="blue"> ."-". $sy; ?>article; ?>
> >
>
>
>
>
>
>
> I use the to display with the line breaks. If I take of the
> it does not wrap but does not give the breaks. To my thinking maybe
> while entering the data we should give break the lines physically. This
> is part of my entry form.
>
>
> HeadLine
>
>
>
>
> Article
>
>
>
>
> Upload Image
>
>
>
>
>
>
>
> How do I get the text not to wrap and to preserve the formatting given by
> the client.
>
> Adrian
>
>
--
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]