Re: Newbie problem - Slashes

From: Date: Thu, 27 Jun 2002 21:39:51 +0000
Subject: Re: Newbie problem - Slashes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104227@lists.php.net to get a copy of this message
Hi, Maybe mysql_escape_string($string) helps? Greetings, Nookie ----- Original Message ----- From: <kim@jumac.com> To: <php-general@lists.php.net>; <holmes072000@charter.net>; <philip@adhesivemedia.com> Sent: Thursday, June 27, 2002 11:32 PM Subject: Re: [PHP] Newbie problem - Slashes > > Hi John,Phillip, > Thanks for writing. > > > You're fault. :) > Guessed as much. :-) > > I know quotes are used for the beginning and end of a string,but i'm thinking what if a user "accidently" puts in a double quote.....maybe as a typo error? > > The part I cannot understand is why is the MySql database's cutting off everything after the escapeing \.....? > eg: > When i enter: My pal is Lisa O"neil > and escape it with: (via addslashes) > My pal is Lisa O\"neil > in the database all thats entered is: > My pal is Lisa O\ > > Why is that? > > Please help, > -Kim. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#104227) next »