Page 1 of 1

backslash before quote

Posted: Thu Dec 27, 2012 8:37 am
by circus86
Hello,
when I trie to write custom code with quotes in for exemple 'Before Browse' tab in a form, when I save it backslash is addes before quote.
Exemple:

Code: Select all

$s = "CREATE TABLE #browseTable# SELECT * FROM table WHERE customer_id =3";
nuRunQuery($s);
become

Code: Select all

$s = \"CREATE TABLE #browseTable# SELECT * FROM table WHERE customer_id =3\";
nuRunQuery($s);
after being saved.

My config
Php 5.2.17
magic_quotes_gpc on
Thanks

Re: backslash before quote

Posted: Thu Dec 27, 2012 10:56 pm
by admin
curcus86,

Switch magic quotes off.

Steven

Re: backslash before quote

Posted: Fri Dec 28, 2012 6:07 pm
by circus86
Thanks, It's ok now !

Re: backslash before quote

Posted: Sat Dec 29, 2012 10:09 pm
by admin
.