Re: Bug #3707 Updated: Inserting the ' char into a mysql table
| From: | ronen weinsteen | Date: | Fri, 03 Mar 2000 10:13:25 +0000 |
| Subject: | Re: Bug #3707 Updated: Inserting the ' char into a mysql table | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-16335@lists.php.net to get a copy of this message | ||
thank you very much for your replay.
this solution is not good beacuse i cant tell my costumers
please enter the \ before evrey ' this is somthing that should be
in the php3 automatically , it has to be somthing that the user doesnt
know about.
so my bug is open again
ronen
Bug Database wrote:
> ID: 3707
> Updated by: joey
> Reported By: ronen@aai.co.il
> Status: Closed
> Bug Type: MySQL related
> Assigned To:
> Comments:
>
> You need to backslash escape the ' char.
>
> You can use any of the following
>
> Turn on magic quotes (http://www.php.net/manual/configuration.php3)
> addslashes (http://www.php.net/manual/function.addslashes.php3)
> e/preg to replace ' with \'
>
> and so on...
>
> Full Bug description available at: http://bugs.php.net/?id=3707