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

2006-12-26 Thread Peter Lauri
Quote: here is the code: if($_GET['query']==new) { filter($query);} elseif($_GET['query']==some'u'all) { filter($query);} elseif($_GET['query']==all'u'ppl) { filter($query);} Did you forget about "" around the strings? /Peter www.dwsasia.com - company web site www.lauri.s

[PHP] pattern containing single quote in IF statement

2006-12-26 Thread Jahangir
I am stuck at a wierd problem. I am trying to do comparision between a "query string" and a "string value". the string consists of some diacriticals and single quotes. But when i try to escape the single quotes using backshash (\) it doesnt work. and when i try to use it inside a double quote preg_