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�
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

