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: [EMAIL PROTECTED]
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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to