Your IP : 216.73.216.162


Current Path : /home/xbodynamge/www/reservation/admin/
Upload File :
Current File : /home/xbodynamge/www/reservation/admin/action_block.php

<?php
include_once('init.inc.php');

if ($_POST['type']=="add"){
	if (trim($_POST['lib_serie'])!=""){
  
		$sql = "insert into reservation".$DB_prefixtable."bloc (lib_bloc, date) value ('".trim($_POST['lib_serie'])."','".$_POST['date_annee']."/".$_POST['date_mois']."/".$_POST['date_jour']."')";
		$req2 = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());
  
	}  
}

if ($_POST['type']=="remove"){
	
		$sql = "delete from reservation".$DB_prefixtable."bloc where id = ".$_POST['id'];
		$req2 = mysqli_query($db, $sql) or die('Erreur SQL !'.mysqli_error());
  
	
}


header('Location: page_block_gestion.php'); 



?>