Re: Problem with single quot
| From: | Andy Hoffman | Date: | Tue, 15 Aug 2000 16:45:28 +0000 |
| Subject: | Re: Problem with single quot | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1823@lists.php.net to get a copy of this message | ||
afan pasalic wrote:
> Thast's right, but I need something else: Why I'm getting print (in code
> below) after submitting apostrophe with slash?!?
> I have to compare string but with \' insteed ' - I'm getting error. Why and
> what it's going on and how to fix it!
In that case, you would need to run stripslashes() instead of addslashes()
before the query is submitted :)
http://www.php.net/manual/function.stripslashes.php
That work?
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com