RE: [PHP] This is driving me to drink...

From: Date: Tue, 01 May 2001 23:12:53 +0000
Subject: RE: [PHP] This is driving me to drink...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51053@lists.php.net to get a copy of this message
$p_code = "MNE"; $hub=$coreKey; if ($p_code=='MNE' || $p_code=='SN' || $p_code=='PM') { $hub = "$neuroKey"; } else if ($p_code=='MAI') { $hub = "$allergyKey"; } else if ($p_code=='SPS' || $p_code=='MCC') { $hub = "$dermKey"; } echo "$hub"; -----Original Message----- From: Richard S. Crawford [mailto:rscrawford@mossroot.com] Sent: Tuesday, May 01, 2001 3:58 PM To: php-general@lists.php.net Subject: [PHP] This is driving me to drink... ...But my boss won't let me keep the Bushmill's at my desk. *sigh* So, assuming that $p_code is "MNE" and $neuroKey is 2, then $hub should be 2, right? Instead, it's coming up with 1, which is the value of $coreKey. What have I missed? $hub=$coreKey; if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) { $hub=$neuroKey; } else if ($p_code=="MAI") { $hub=$allergyKey; } else if (($p_code=="SPS")||($p_code=="MCC")) { $hub=$dermKey; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#51053) next »