PHP quick Help

Discussion in 'PHP' started by technoguy, Dec 11, 2006.

Thread Status:
Not open for further replies.
  1. #1
    I have a following string into database

    "<b>Hello</b>"

    I know how to fetch records but while i want to print it in bold (depend on which html tag is there).

    Is there any function to do that in php?
     
    technoguy, Dec 11, 2006 IP
  2. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #2
    Just print it. It will be in blod because the data you will fetch will be

    "<b>Hello</b>"

    for printing use

    Print or echo
     
    Nick_Mayhem, Dec 11, 2006 IP
  3. technoguy

    technoguy Notable Member

    Messages:
    4,395
    Likes Received:
    308
    Best Answers:
    0
    Trophy Points:
    205
    #3
    I want it in textarea and want it in bold font.
     
    technoguy, Dec 11, 2006 IP
  4. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #4
    Then make the textarea style acccording to the html tag. :)

    You will have to make this code yourself.
     
    Nick_Mayhem, Dec 11, 2006 IP
  5. ThisGoatStarves

    ThisGoatStarves Peon

    Messages:
    361
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    
    
    // css style
    
    #textareaname { font-weight: bold; } 
    
    // php
    
    echo "<textarea id='textareaname'>Hello</textarea>";
    
    
    Code (markup):
     
    ThisGoatStarves, Dec 12, 2006 IP
Thread Status:
Not open for further replies.