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().


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to