Re: [PHP-DB] strip

2003-06-04 Thread Chris Mach
Thanks a lot frank, It's working nicely :o) "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > That depends on your backend. Some database systems uses \ to escape ' > others uses '. In the last case use > > $value = str_replace("'", "''", $value); > > - Frank > >

Re: [PHP-DB] strip

2003-06-04 Thread Frank M. Kromann
That depends on your backend. Some database systems uses \ to escape ' others uses '. In the last case use $value = str_replace("'", "''", $value); - Frank > Don't. addslashes() instead. > > Chris Mach wrote: > > >does anyone know how to strip a ' from a string? It's causing errors for my >

Re: [PHP-DB] strip

2003-06-04 Thread Leif K-Brooks
Don't. addslashes() instead. Chris Mach wrote: does anyone know how to strip a ' from a string? It's causing errors for my sql statements -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

[PHP-DB] strip

2003-06-04 Thread Chris Mach
does anyone know how to strip a ' from a string? It's causing errors for my sql statements -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php