Re: insert problem mysql

From: Date: Wed, 05 Sep 2001 15:55:51 +0000
Subject: Re: insert problem mysql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12174@lists.php.net to get a copy of this message
Use $s = addslashes($s); "Shi" <shimon@oek.dk> wrote in message news:20010905114021.39460.qmail@pb1.pair.com... > 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 > >

« previous php.db (#12174) next »