Connecting Tech Pros Worldwide Forums | Help | Site Map

MY SQL PHP

Quinonez
Guest
 
Posts: n/a
#1: Jul 17 '05
i have a multiparagraph statement in a mysql database. its called out
by PHP. if i do not put <br> at the end of each paragraph, the result
is the statement all as one paragraph and when called in a flash movie
it looks correctly. If i put <br> in with the statement it shows
correctly on the static php page but in flash it shows the <br> tag....
the statement is a TEXT Data type.....
does anyone know how to set this up so that it is displayed correctly?

Andy Hassall
Guest
 
Posts: n/a
#2: Jul 17 '05

re: MY SQL PHP


On 22 Dec 2004 07:32:05 -0800, "Quinonez" <quinonez@gmail.com> wrote:
[color=blue]
>i have a multiparagraph statement in a mysql database. its called out
>by PHP. if i do not put <br> at the end of each paragraph, the result
>is the statement all as one paragraph and when called in a flash movie
>it looks correctly. If i put <br> in with the statement it shows
>correctly on the static php page but in flash it shows the <br> tag....
>the statement is a TEXT Data type.....
>does anyone know how to set this up so that it is displayed correctly?[/color]

For the HTML display, use nl2br() to convert line breaks to <br>.
For whatever Flash uses, juse send the string unmodified.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Quinonez
Guest
 
Posts: n/a
#3: Jul 17 '05

re: MY SQL PHP


that was the answer..........AWESOME
thank you.....
i would be SO LOST w. out the groups...

Closed Thread