Re: Re: Bug #3707 Updated: Inserting the ' char into a mysql table
| From: | Wico de Leeuw | Date: | Fri, 03 Mar 2000 10:21:11 +0000 |
| Subject: | Re: 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-16338@lists.php.net to get a copy of this message | ||
Hiya
Take a look at addslashed and magic quotes
'This is NOT an php bug so please close the bug report
Greetz,
Wico
At 12:13 3-3-2000 +0200, ronen weinsteen wrote:
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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net