Re: Inserting single quotes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm sorry, I totally misnamed the subject of this email. It's the slashes that are getting inserted, but as I said only on one server, not the other.

So I don't want to change the code, if I can help it. I hope there is a setting that will prevent this from happening.

Skip

base64 wrote:
try this :

<?
$str = "\'u\',0,\'account\',1";
echo stripslashes($str);
?>

On 7/6/07, skip evans <skip@xxxxxxxxxxxxxxxxx> wrote:
Hey all,

I have the following in a text field in the database.

'u',0,'account',1

One my dev server if I update this in the database I get
the same string. On my production server I get this:

\'u\',0,\'account\',1

I thought setting magic_quotes=Off would disable this,
but it did not.

Can someone tell me what does this and how to disable it?

Thanks!

--
Skip Evans
Big Sky Penguin
61 W Broadway
Butte, Montana 59701
=-=-=-=-=-=-=-=-=-=-
Check out PHPenguin, a versatile and lightweight
code base for developing PHP/MySQL applications.
phpenguin.bigksypenguin.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Skip Evans
Big Sky Penguin
61 W Broadway
Butte, Montana 59701
=-=-=-=-=-=-=-=-=-=-
Check out PHPenguin, a versatile and lightweight
code base for developing PHP/MySQL applications.
phpenguin.bigksypenguin.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux