Re: Why won't this work?

From: Date: Fri, 19 Jul 2002 07:36:58 +0000
Subject: Re: Why won't this work?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108454@lists.php.net to get a copy of this message
You probably do not have a background of C / C++ programming ;-)
assignments:    single equal sign
comparison:    dual equal sign
The *assignments* in your if statements are always TRUE, so it will always execute the statements after the first *if* So use if ($mode == "entrance") { and else if ($mode == "collection") { And all works well... René

« previous php.general (#108454) next »