MY SQL PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Quinonez

    MY SQL PHP

    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

    #2
    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.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Quinonez

      #3
      Re: MY SQL PHP

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

      Comment

      Working...