Have a look at addslashes
http://www.php.net/manual/en/function.addslashes.php
Miles

At 01:20 PM 9/5/01 +0200, shi wrote:
>Hi
>I'm trying to insert a text into a MYSQL DB, and here is the problem. If the
>text looks like this "xxxxx xx x x xxx 'xxx xxx" then PHP interprets the
>text following the ' as an sql statement. Does anyone know how to overcome
>this problem.
>
>Thank you
>Shimon
>
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to