T
TheJkWhoSaysNi
Guest
i have a problem with or ("||"), heres what i have
The things in the first IF are working properly, but the pages in the in, "else if" are acting like the ones in the if
Can anyone explaing what i've done wrong?
Also, my str_replace isnt working. Why?
Thanks for any help.
Code:
if($page == 'Ranks' || 'Rules' || 'About' || 'History' || 'Links'){
$title = str_replace("_", " - ", "$page");
$title = "$page";
include ("header.php");
content("<$page>");
include("footer.php");
}
else if($page == 'League_Join' || 'League_Staff' || 'League_Rules' || 'League_Players' || 'League_Standings' || 'League_Report' || 'League_Games' || 'League_Statistics' || 'League_Stats1' || 'League_Stats2' || 'League_Stats3' || 'League_Stats4' || 'League_Stats5' || 'League_Stats6' || 'League_Stats7' || 'League_Profile'){
$title = str_replace("_", " - ", "$page");
$leaguePage = str_replace("_", "/", "$page");
echo("page: $page,&username");
include("header.php");
member();
include("$leaguePage" + '.php');
include("footer.php");
}
The things in the first IF are working properly, but the pages in the in, "else if" are acting like the ones in the if
Can anyone explaing what i've done wrong?
Also, my str_replace isnt working. Why?
Thanks for any help.