RE: [PHP] stupid me!!

From: Date: Thu, 31 Oct 2002 03:25:29 +0000
Subject: RE: [PHP] stupid me!!
Groups: php.general 
Request: Send a blank email to php-general+get-122177@lists.php.net to get a copy of this message
Below you force state to equal NSW, QLD, NT I think what you are after is "OR" not "AND" || = or && = and --------------------------------------------------------- Chris Kay (Systems Development) Techex Communications Website: www.techex.com.au Email: chris.kay@techex.net.au Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 --------------------------------------------------------- -----Original Message----- From: Peter Houchin [mailto:php@vfsa.com.au] Sent: Thursday, 31 October 2002 2:31 PM To: php_gen Subject: [PHP] stupid me!! howdy, can any one tell me what's wrong with this my mind is going a miss on me.. if ( $state == 'NSW' && $state == "QLD" && $state == "NT" && $state == "ACT"){ do sum stuff } else { do other stuff } TIA Peter "the only dumb question is the one that wasn't asked" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#122177) next »