예제 #1
0
파일: section.php 프로젝트: sebspas/AFK-WEB
function addParticipant($idevent)
{
    $BD = new BD('participant');
    $user = $BD->selectTwoParam('iduser', $_SESSION['iduser'], 'idevent', $idevent);
    if (!empty($user->iduser)) {
        return false;
    } else {
        $BD->addParticipant($idevent, $_SESSION['iduser']);
        return true;
    }
}
예제 #2
0
파일: index.php 프로젝트: sebspas/Share2Go
function recupTrajetParam($cond_att, $cond_val, $cond_att2, $cond_val2)
{
    $BD = new BD('trajet');
    return $BD->selectTwoParam($cond_att, $cond_val, $cond_att2, $cond_val2, 'date');
}