Re: elseif statements

From: Date: Tue, 05 May 2009 13:49:37 +0000
Subject: Re: elseif statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292270@lists.php.net to get a copy of this message
At 2:57 PM -0400 5/4/09, Gary wrote:
I am trying to get this to work, however it only reads the second if statement. I get no error messages, but as I change counties, the % stays the same. Can someone enlighten me, or should I be looking at switch statements? Thanks for your help. Gary
In my opinion, never use elseif -- I've never used it. I don't see any reason whatsoever to do so. In my opinion, whenever your choices exceed two, use switch. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#292270) next »