Jump to content

if (variable == true) include doesn't work


Captain09

Recommended Posts

hi,

here is my code:

 

<?php

include ("GameEngine/config.php");

 

if (buytroops == true)

include ("buytroops.tpl");

else;

 

if (buypop == true)

include ("buypop.tpl");

else;

 

If (buyress == true)

include ("buyress.tpl");

else;

?>

 

and thats the config file:

 

define ("buypop","false");

 

define ("buytroops","false");

 

define ("buyress","false");

 

 

 

 

but it still includes the files

whats wrong?

Link to comment
https://forums.phpfreaks.com/topic/266704-if-variable-true-include-doesnt-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.