session_start();
include('verifuser.php');
?>
include ('admin/dbconnec.php');
if( isset($_GET["id"]) ){
if ( $_GET['id'] != '' && $_GET['week'] != '' && $_GET['month'] != '' && $_GET['year'] != '' ){
$id = $_GET['id'];
$week = $_GET['week'];
$month = $_GET['month'];
$year = $_GET['year'];
$sql = 'DELETE FROM `rdv` WHERE id='.$id;
$req = mysql_query($sql) or die('Erreur SQL !
'.$sql.'
'.mysql_error());
header ('location:agenda_weekview.php?week='.$week.'&month='.$month.'&year='.$year);
exit;
}
else {
header ("location:error.php");
exit;
}
}
else{
header ("location:404.php");
exit;
}
?>