Re[2]: [PHP] Why won't this work?
| From: | Mantas Kriauciunas | Date: | Fri, 19 Jul 2002 09:33:47 +0000 |
| Subject: | Re[2]: [PHP] Why won't this work? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108455@lists.php.net to get a copy of this message | ||
Hello Rasmus,
Friday, July 19, 2002, 12:26:45 AM, you wrote:
RL> You need == instead of = there
RL> 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");
>> }
>>
>> ?>
oh yea, didn't look closely and didn't understand question clearly :/
guess im tired:( good night...sorry about my letter:/
thnx
--
Best regards,
Mantas mailto:Mantuks@attbi.com