예제 #1
0
                break;
            default:
                break;
        }
        //die();
        header('Location: view.php');
        $db->close();
    }
    // run sql stmt
    if (array_key_exists("exe", $_POST) && $_POST["exe"] == 1) {
        // check if exe
        if (array_key_exists("exeStmt", $_POST)) {
            // get exeStmt
            $exe = $_POST["exeStmt"];
            // check in id
            $db->runExe($exe);
            // close helper
            $db->close();
            // relocate to same page without post data
            header('Location: view.php');
        }
    }
    // get participants
    $participants = $db->getParticipants();
    // get mentors
    $mentors = $db->getMentors();
    // close helper
    $db->close();
    // no session
} else {
    // check if loggin in