Re: Error Code Airhead

From: Date: Tue, 02 Nov 2004 19:00:37 +0000
Subject: Re: Error Code Airhead
Groups: php.general 
Request: Send a blank email to php-general+get-200950@lists.php.net to get a copy of this message
-------------- Original message ---------------------- From: Jeff Oien <jeff@webdesigns1.com> > //always gives error message even if one of the two codes entered: > if ($Promotion_Sub == 'Checked' && ($code != 'D04E' || $code != > 'Y04KG')) { If $code is D04K then it is not Y04KG making the statement true since it is an or. I think either ($code != 'D04E' && $code != 'Y04KG') or !($code == 'D04E' || $code == 'Y04KG') are what you are looking for.

« previous php.general (#200950) next »