if sentence structure is not easy.
I have two groups in db.
"b_teams" for boards
"m_group" for members
So, I want to check two groups at inde.php.
index.php
<?
include("go_to.php");
if ($b_teams) {
$b_teams = which_board($b_teams);
include($b_teams);
}
if ($m_group) {
$m_group = which_group($m_group);
include($m_group);
}
?>
go_to.php
<?
if ($b_teams) {
switch ($b_teams) {
case "t_masters":
$t_masters = "/team/t_maters/t_index.php";
return $t_masters;
case "s_masters":
$s_masters = "/team/t_maters/s_index.php";
return $s_masters;
}
}
if ($m_group) {
switch ($b_teams) {
case "m1_group":
$m_group = "/team/m_group/m1_index.php";
return $m_group;
case "m2_group":
$m_group = "/team/m_group/m2_index.php";
return $m_group;
}
However, this doesn't work....
I need help for this problem.
Thanls in advance