Doesn't putting a backslash in front of the offending character escape it??
Isn't that what the PHP addslashes() function does???

Richy


-----Original Message-----
From:   Daniel Harik [SMTP:[EMAIL PROTECTED]]
Sent:   03 January 2002 19:00
To:     [EMAIL PROTECTED]
Subject:        [PHP] special chars in SQL string

Hello

Guys how can escape chars like ' and " so that MySQL doesn't report me
errors all the time, for example when i try to add data like "It's", i
always have errors

Thank You

  

-- 
Best regards,
 Daniel      


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to