I am modifying a reservation system and I want it not to be reserved for more than 24 or 48 hours in advance. Currently when it is Monday, with the following code I can make reservations for the whole week:
Resuelto
Right now the only thing he does is once 30 minutes have passed since the beginning of the reservation, he can not book.
The part would be this but I can not do it
if($n_dia==$i && $clase_celda->int_hora <= $n_hora)
I'm also trying to combine it with that if the variable
<?=$cliente->caducidad?>
is < that the current date does not leave you either but I do not know if I have to do them separately or you can use & amp; or the OR or AND
Here what it does is not show the booking button when the current time is