$dispon="
select *
from reserva
, casa
where casa.lotacao = '$tamanho'
and reserva.Casa_id = '$product_id'
and reserva.checkout = '$checkout' BETWEEN reserva.checkin ='$checkin'
";
$run_q = mysqli_query($link, $dispon);
reserva =预订
casa = home
我想找个例子
Check-in 15-06-2016
check-out 20-06-2016
我希望关闭5天。
答案 0 :(得分:0)
是。但是你的语法错了:SELECT .... $ checkout BETWEEN'$ checkin'和DATE_SUB('$ checkin',INTERVAL 5 DAY)