RE: [PHP] stupid me!!
thanks every one for your help. > -Original Message- > From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com] > Sent: Thursday, 31 October 2002 2:26 PM > To: Peter Houchin > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] stupid me!! > > > A variable can't have 4 values at once? :) > > Peter Houchin wrote: > > >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" > > > > > > > > > > > > -- > The above message is encrypted with double rot13 encoding. Any > unauthorized attempt to decrypt it will be prosecuted to the full > extent of the law. > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] stupid me!!
Well the && means and so this will never work!! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] If you need PHP hosting with an experienced support team 24/7 then email me today. On Thu, 31 Oct 2002, Peter Houchin wrote: > 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
Re: [PHP] stupid me!!
A variable can't have 4 values at once? :) Peter Houchin wrote: 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" -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] stupid me!!
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
[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