Re: [PHP] Re: pattern containing single quote in IF statement

2007-01-04 Thread Richard Lynch
On Tue, December 26, 2006 2:42 pm, Frank Arensmeier wrote: > First of all, I strongly feel that you should have double quotes > around the string you like to compare with (e.g. "new"). Otherwise, > you are comparing against a string but to something else (integer ?). > Without quotes, PHP will thro

Re: [PHP] Re: pattern containing single quote in IF statement

2006-12-26 Thread Frank Arensmeier
First of all, I strongly feel that you should have double quotes around the string you like to compare with (e.g. "new"). Otherwise, you are comparing against a string but to something else (integer ?). Without quotes, PHP will throw an error (not sure if it will throw a fatal error or some

[PHP] Re: pattern containing single quote in IF statement

2006-12-26 Thread Jahangir
I tried that also but it didnt work. if($_GET['query']=="some'u'all") { filter($query);} I still get the same error. ""Jahangir"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am stuck at a wierd problem. I am trying to do comparision between a > "query string" and a "string valu