Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    310
    Thanks
    86
    Thanked 3 Times in 3 Posts

    Outputting characters

    Hi All,

    Wondering if anyone could help me. I have a piece of code which outputs data from a field in my database, but something like the word:

    Side's

    Comes out as:

    side’s

    PHP Code:
    <?
    $aParagraphs 
    explode("\n"nl2br($body_text)); 
    echo 
    '<span style="font-weight:bold;font-size:120%;">' htmlspecialchars_decode($aParagraphs[0]) . '</span>';
    for (
    $i=1$i count($aParagraphs); $i++) {
       echo 
    '<span style="font-size:120%;">' htmlspecialchars_decode($aParagraphs[$i]) . '</span>';
    }  
    ?>

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    How does that apostrophe get phsyically stored in your table?


  •  

    Posting Permissions

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