RE: [PHP] Newbie problem - Slashes

From: Date: Fri, 28 Jun 2002 01:36:42 +0000
Subject: RE: [PHP] Newbie problem - Slashes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104246@lists.php.net to get a copy of this message
Show us your code. ---John Holmes... > -----Original Message----- > From: kim@jumac.com [mailto:kim@jumac.com] > Sent: Thursday, June 27, 2002 5:33 PM > To: php-general@lists.php.net; holmes072000@charter.net; > philip@adhesivemedia.com > 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.

« previous php.general (#104246) next »