Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

backslash before quote

Locked
circus86
Posts: 2
Joined: Tue Dec 25, 2012 6:01 pm

backslash before quote

Unread post 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
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: backslash before quote

Unread post by admin »

curcus86,

Switch magic quotes off.

Steven
circus86
Posts: 2
Joined: Tue Dec 25, 2012 6:01 pm

Re: backslash before quote

Unread post by circus86 »

Thanks, It's ok now !
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: backslash before quote

Unread post by admin »

.
Locked