Re: [PHP] Strange pg_escape_string behavior

2005-11-07 Thread Curt Zirzow
* -k. wrote: > ... > pg_exec(): Query failed: ERROR: invalid regular expression: invalid escape \ > sequence . > > It seems to happen when using just a "\" or text ending with a "\" but not if > a "\" is in the > middle of a string of text. I would guess you have magic_quote_gpc on, you can c

[PHP] Strange pg_escape_string behavior

2005-11-07 Thread -k.
While using pg_escape_string to clean data being placed in a query sent to me by the user i get the following error after submitting the query with pg_execute: pg_exec(): Query failed: ERROR: invalid regular expression: invalid escape \ sequence . It seems to happen when using just a "\" or te