Use $s = addslashes($s); "Shi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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]