Re: Re[2]: [PHP] HTML in database

2007-07-04 Thread Bruce Cowin
I was still having the same problems even with PDO, but doing my own replace: $body = str_replace("'", "\"", $body); fixed the problem. Thanks again! Regards, Bruce >>> Richard Davey <[EMAIL PROTECTED]> 5/07/2007 12:34:29 p.m. >>> Hi Bruce, Thursday, July 5, 2007, 1:26:01 AM, you wrote: >

Re[2]: [PHP] HTML in database

2007-07-04 Thread Richard Davey
Hi Bruce, Thursday, July 5, 2007, 1:26:01 AM, you wrote: > Thanks. Sorry, I should have mentioned I'm using MS Sql Server and > I don't see a mssql equivalent to that function. MSSQL treats '' as an escaped ', not \' like MySQL does. So you can't addslashes it. Perform your own ' to '' convers