When i echo:
mysqli_real_escape_string($dbc, ‘”conn”e”cting”‘);
It out put: \”conn\”e\”cting\” on both my remote and local server
which is how it supposed to be, but problem is, it is saving [“conn”e”cting”] to database in my local database, while saving [\”conn\”e\”cting\”] with the back slashes to my remote database. Should I configure my remote database? How? I’m using nearlyfreespeech’s service.
Thanks!
Your remote
php.inihas magic quotes enabled.You can check by running…
It will escape all the GET, POST & COOKIE super globals automatically – but then escaping again will leave you with a slash that will be inserted.
Disable magic quotes on your server, or use a magic quotes disabler functions if disabling them in impossible.
Update
For the hell of it, here is one I just made up
It works!