SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    US
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy HTML and PHP fighting.

    I have a text area where users put information but most times it will be a mixture .That is a sentence and then bullet for example

    the boy is going to school but why
    a)her likes school
    b)he likes girls
    c)i don't care."


    i this it is put in the data base as it is since this section i put tiny text.so when it called i display it as one of the sections in a table ie i put it btn the
    <td> </td> tags it just comes out as one line .so the above example would come out as the boy is going to school but why a)her likes school b)he likes girls c)i don't care." which is not what i want. i want it to be displayed at it was entered which was


    the boy is going to school but why
    a)her likes school
    b)he likes girls
    c)i don't care."

  2. #2
    SitePoint Wizard Sillysoft's Avatar
    Join Date
    May 2002
    Location
    United States :)
    Posts
    1,691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Grab it from the db then:

    PHP Code:
    $rowvalue 'the boy is going to school but why a)her likes school b)he likes girls c)i don\'t care.'

    $rowvalue nl2br($rowvalue);

    echo 
    $rowvalue
    Silly

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    US
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    It works thanks no need to open this

    it is working fine


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •