Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/10/2010, 10:27
ommm
 
Fecha de Ingreso: septiembre-2010
Mensajes: 92
Antigüedad: 13 años, 8 meses
Puntos: 1
Pregunta Problema anidacion consulta

esta es mi consulta
Código PHP:
$query "SELECT * FROM bookings WHERE ((the_date='" $_POST['the_date'] . "' and id_item='"$_POST['id_item'] . "') 
AND ((horario='"
$_POST['horario'] . "' or horario='Completo')) OR (( the_date='" $_POST['the_date'] . "' and id_item='"$_POST['id_item'] . "' and horario='Manana') AND (the_date='" $_POST['the_date'] . "' and id_item='"$_POST['id_item'] . "' and horario='Tarde'))"
Lo que quiero conseguir es que al realizar la reserva se pueda elegir Mañana o tarde, y que cuando haya ya elegido mañana y tarde de un mismo dia no me deje hacer una reserva con "dia completo".

Muchas gracuias