Re: Why won't this work?
| From: | Rasmus Lerdorf | Date: | Fri, 19 Jul 2002 07:26:45 +0000 |
| Subject: | Re: Why won't this work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108452@lists.php.net to get a copy of this message | ||
You need == instead of = there
On Fri, 19 Jul 2002, John Wulff wrote:
> Any ideas on why this won't work? It will only include("inc/entrance.php")
> It never, no matter what the value of $mode, displays collection.php.
>
> <?php
> $mode = "entrance";
> if ($mode = "entrance") {
> include("inc/entrance.php");
> }
> else if ($mode = "collection") {
> include("inc/collection.php");
> }
>
> ?>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>