Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

quoting insert statements in sqlServer

genoccajgenoccaj Member Posts: 10
having some troubles with quoting a string im trying to insert into a sqlServer database. The character that i am having trouble with is "'". does anyone have any suggestions?!

ps i have already tried "addslashes", "quotemeta".

Comments

  • StillAwakeStillAwake Member Posts: 8
    : having some troubles with quoting a string im trying to insert into a sqlServer database. The character that i am having trouble with is "'". does anyone have any suggestions?!
    :
    : ps i have already tried "addslashes", "quotemeta".
    :
    Addslashes should work. You might try "'", or set up a variable $str = chr(39);


Sign In or Register to comment.