aqui esta donde recivo
Código PHP:
<?php
$asunto=$_POST['asunto'];
$ubicacion=$_POST['ubicacion'];
$fechai=$_POST['fecha'];
$fechaf=$_POST['fecha2'];
$horai=$_POST['inicio'];
$horaf=$_POST['fin'];
$fechaci=explode("-",$fechai);
$fechai=$fechaci[2]."-".$fechaci[0]."-".$fechaci[1];
$fechac=explode("-",$fechaf);
$fechaf=$fechac[2]."-".$fechac[0]."-".$fechac[1];
$hora=explode(":",$horai);
$id_sala=$ubicacion.$fechaci[2].$fechaci[0].$fechaci[1].$hora[0];
$hi=explode(" ",$horai);
$hf=explode(" ",$horaf);
echo $hi[0]." ";
$sql="insert into salon values('$id_sala','$fechai','$hi[0]','$asunto','$hf[0]','$fechaf','$ubicacion')";
echo $sql;
$result=$DB->Query($sql);
//header("location:index.php");
?>