Re: elseif statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux