Files
ms1inscription-v5/clear_waiver.php
2026-05-13 09:43:32 -04:00

35 lines
891 B
PHP

<?php
/**
* Created by PhpStorm.
* User: MovieGod
* Date: 21/11/2014
* Time: 3:31 PM
*/
include('php/inc_fonctions.php');
include('php/inc_fx_messages.php');
$sqlIsCurrentUser = "SELECT * from resultats_participants where par_id = " . intval($_GET['par_id']) . " AND com_id = " . $_GET['com_id'];
$tabCurrentUser = $objDatabase->fxGetRow($sqlIsCurrentUser);
if($tabCurrentUser != null) {
$qry = "update resultats_participants set waiver_cleared = 1, waiver_cleared_maj = '" . fxGetDateTime() . "' where par_id = " . intval($_GET['par_id']);
//var_dump($qry);
//exit;
$results = $objDatabase->fxQuery($qry);
if ($results)
$_SESSION['msg'] = 'p537';
else
$_SESSION['msg'] = 'p123';
}
else{
// echo 'not ur bizness';
$_SESSION['msg'] = 'p538';
// exit;
}
//var_dump($_SESSION['msg']);
//exit;
header("location: " . $_SERVER['HTTP_REFERER']);