Show us your code.
---John Holmes...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 27, 2002 5:33 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [PHP] Newbie problem - Slashes
>
Hi,
Maybe mysql_escape_string($string) helps?
Greetings,
Nookie
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 11:32 PM
Subject: Re: [PHP] Newbie problem - Slash
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
You're fault. :)
Remember that quotes are used to tell the beginning and end of a string. So
if you are using a " to mean the beginning of the string, then there can't
be any " within the string itself. If there are any ", they need to be
changed to \", which means they are escaped.
magic_quotes
4 matches
Mail list logo