List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:March 29 2002 6:16pm
Subject:Re: mysql stripslash fonction ? to escape ' ""
View as plain text  
At 19:07 +0100 3/29/02, David yahoo wrote:
>  Hi all,
>
>  I generate some sql statement with a sql query and make some insert.
>But when inserting, I get some surprises with some
>strings value which contains ' or " , " cant be escape because its my string
>delimiter.
>
>How can I do to correct this :
>is there a mysql function stripslash (eq in php).

Prior to PHP 4.0.3, use addslashes().
Prior to PHP 4.2.0, use mysql_escape_string().
As of PHP 4.2.0, use mysql_real_escape_string().

Thread
mysql stripslash fonction ? to escape ' ""David yahoo29 Mar
  • Re: mysql stripslash fonction ? to escape ' ""Paul DuBois29 Mar
  • Re: mysql stripslash fonction ? to escape ' ""David yahoo29 Mar
    • Re: mysql stripslash fonction ? to escape ' ""Dan Nelson29 Mar