RE: [PHP] pattern containing single quote in IF statement
| From: | Peter Lauri | Date: | Tue, 26 Dec 2006 13:28:19 +0000 |
| Subject: | RE: [PHP] pattern containing single quote in IF statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246226@lists.php.net to get a copy of this message | ||
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.se - personal web site
www.carbonfree.org.uk - a way to reduce your carbon emissions and be a
helping hand in the struggle against global warming