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 - 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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to