Re: Usage of double quotes

From: gym dot scuba dot kennedy at gmail <>
Date: Fri, 03 Jul 2009 15:46:40 GMT
Message-ID: <AJp3m.2171$>

<> wrote in message
> Hi All,
> I have an insert statement that is embedded in a PHP code. It
> basically inserts a JS string. We have lots of single quotes inside
> the string which we replace by double single quotes. It works fine,
> but strangely now, the dev team wants to enclose the whole string in
> double quotes. Is there a way of enclosing the entire string in double
> quotes? I know Oracle doesn't permit using the same.
> This is a part of the string -
> )+6;pVM=pVF.substring(y,pVF.indexOf(".",y));}}
> else if (window.ActiveXObject && window.execScript){
> window.execScript('on error resume next\npVM=2\ndo\npVM=pVM+1\
> Thanks in advance
> Guru

use bind variables and then you won't care how the string is quoted. (also you won't be subject to sql injection, you application will preform better and scale better)
Jim Received on Fri Jul 03 2009 - 10:46:40 CDT

Original text of this message