Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormykz-
    • CommentTimeJul 12th 2006 edited
     permalink
    what i'm doing is grabing my data from my mysql database and want to display it on my index page but for some random reason in $text and only $text var it changes all ' to ? i don't have a clue why it's doing this so i thought someone here might.

    ref: http://www.phpriot.com/3317
    •  
      CommentAuthorfake
    • CommentTimeJul 12th 2006 edited
     permalink
    if you're using Firefox, it might just be the character encoding that doesn't recognize the ' (maybe it passes as the french ’ somehow). FF replaces unknown chars with ?
    • CommentAuthormykz-
    • CommentTimeJul 12th 2006
     permalink
    it's all good found out what it was i think it's just lack of sleep but i was keying in ` instead of ' sorry for wasting ur time guys and thanks fake for your help
    •  
      CommentAuthorJohnRiv
    • CommentTimeJul 12th 2006
     permalink
    my mySQL and PHP knowledge is *very* limited, but I'm guessing one of these may be of help to you:
    - http://www.php.net/htmlspecialchars
    - http://www.php.net/addslashes
Add your comments
    Username Password
  • Format comments as (Help)