Re: FORMATTING HTML IN AND OUT OF MYSQL
| From: | phobo | Date: | Fri, 02 Feb 2001 06:57:42 +0000 |
| Subject: | Re: FORMATTING HTML IN AND OUT OF MYSQL | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5331@lists.php.net to get a copy of this message | ||
see http://www.php.net/manual/en/function.nl2br.php
siggy
----- Original Message -----
From: "Bikes" <bikes@frankadel.com>
To: "'Robert Trembath '" <robert@ishoptech.com>;
<php-windows@lists.php.net>
Sent: Friday, February 02, 2001 7:38 PM
Subject: [PHP-WIN] FORMATTING HTML IN AND OUT OF MYSQL
> I have a little problem.
>
> I need to allow my clients to update the news on their website via a form.
>
> The form is supposed to allow them input Latest news etc. and then it is
> written into a database, and taken out on the other end by then index
page.
>
> The problem now, is that I when I put the text into the database, it is no
> more formatted when I am pulling the info out of the database. All the
> paragraphs, and line breaks are lost, and the whole text is lumped
together.
> I need to be able to write the HTML of what the user typed into the
database
> so I can "echo" out the info, representing <BR> with line breaks etc.
>
> Also, in the event that I do not use a database, is it possible to use
files
> to achieve the same results? Eg "include files"?
>
>
>
> Thanks
>
> Bikes da Bikerider
>
> -------
> Riding into the next century
> -------
>