Re: FORMATTING HTML IN AND OUT OF MYSQL
| From: | Tom Mathews | Date: | Fri, 02 Feb 2001 10:24:43 +0000 |
| Subject: | Re: FORMATTING HTML IN AND OUT OF MYSQL | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5336@lists.php.net to get a copy of this message | ||
.. or www.mysql.com/downloads/contributions - there's a whole class in there to
handle HTML with MySQL
phobo wrote:
> 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
> > -------
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net