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") {
    else if ($mode == "collection") {

And all works well...


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to