Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/09/2008, 15:44
bleckfala
 
Fecha de Ingreso: enero-2008
Mensajes: 163
Antigüedad: 16 años, 3 meses
Puntos: 2
Respuesta: se duplican al insertar

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");
?>