Jump to content

Recommended Posts

Posted (edited)

I'm currently struggling to find a PHP code to check room occupancy in a template.

Based on a date range, I need to check if a room is already booked.

Does anyone have a working code?

folgendes reicht nicht:

$selector.=",datum<=".$id->datum.",datumbis>=".$id->datumbis;

Already booked: z.B. 13.08.2025 - 04.12.2025

Checks: 12.08.2025 - 01.10.2025 no problem

problem: 01.07.2025 - 03.12.2025

problem: 01.10.2025 - 01.01.2026

 

 

 

Edited by Frank Schneider

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...