addslashes() would work... or use an ereg_replace to do it.  Provided that
you only use single quotes in your SQL (which is a good idea anyway since
other db's only allow you to use single quotes) then you only have a
problem with single quotes and not double quotes.

On Thu, 3 Jan 2002, Daniel Harik wrote:

> Hello
>
> Guys how can escape chars like ' and " so that MySQL doesn't report me
> errors all the time, for example when i try to add data like "It's", i
> always have errors
>
> Thank You
>
>
>
> --
> Best regards,
>  Daniel                          mailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to