Escape problems...why?

From: Date: Fri, 23 Apr 2004 03:08:45 +0000
Subject: Escape problems...why?
Groups: php.general 
Request: Send a blank email to php-general+get-184341@lists.php.net to get a copy of this message
Hi, I am accepting some SQL via a textarea on a webform and then saving that SQL in the database for later use.... everythings working fine on our test servers but for some reason on our clients servers its screwing up. For example this insert statement: insert into test_ing values('a','a','a','a') becomes: insert into test_ing values (\'a\',\'a\',\'a\',\'a\') I immediatly suspected "magic_quotes" but checked (via phpinfo) and see that magic_quotes are off, as a safety precaution I even have "set_magic_quotes_runtime(0)" in the "config.php" file... I did see that "magic_quotes_gpc" is on, and then went to the PHP online manual and it says this cant be fixed during runtime...? is this the problem? if so how to fix it? Thanks, Ryan

« previous php.general (#184341) next »