Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$sql = "SELECT * FROM buchungen WHERE '".$von."' < Buchung_Von AND '".$bis."' > Buchung_Von AND '".$bis."' < Buchung_Bis OR
'".$von."' < Buchung_Von AND '".$bis."' = Buchung_Bis OR
'".$von."' < Buchung_Von AND '".$bis."' > Buchung_Bis OR
'".$von."' = Buchung_Von AND '".$bis."' > Buchung_Von AND '".$bis."' < Buchung_Bis OR
'".$von."' = Buchung_Von AND '".$bis."' = Buchung_Bis OR
'".$von."' = Buchung_Von AND '".$bis."' > Buchung_Bis OR
'".$von."' > Buchung_Von AND '".$von."' < Buchung_Bis AND '".$bis."' > Buchung_Von AND '".$bis."' < Buchung_Bis OR
'".$von."' > Buchung_Von AND '".$von."' < Buchung_Bis AND '".$bis."' = Buchung_Bis OR
'".$von."' > Buchung_Von AND '".$von."' < Buchung_Bis AND '".$bis."' > Buchung_Bis ";
SELECT *
FROM
(
-- [Datumsliste]
SELECT
years.myYear,
makedate(years.myYear, daysOfYear.day_in_year) AS mydate,
Buchung_Von, Buchung_Bis
FROM
(
-- [Tagesnummern]
-- Zahlen von 1 bis 400
SELECT
@day_in_year := @day_in_year +1 AS day_in_year
FROM
(SELECT @day_in_year :=0) AS vars,
-- [VirtualRows1]
-- 400 Zeilen
(SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5) AS d1,
(SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5) AS d2,
(SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4) AS d3,
(SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4) AS d4
-- [/VirtualRows1]
-- [/Tagesnummern]
) AS daysOfYear,
(
-- [Jahreszahlen]
-- Zahlen von 'Aktuelles Jahr'-10 bis 'Aktuelles Jahr' +17
SELECT
@YEAR := @YEAR+1 AS myYear
FROM
(SELECT @YEAR := YEAR(NOW()) -10) AS vars,
-- [VirtualRows2]
-- 27 Zeilem
(SELECT 1 UNION SELECT 2 UNION SELECT 3) AS y1,
(SELECT 1 UNION SELECT 2 UNION SELECT 3) AS y2,
(SELECT 1 UNION SELECT 2 UNION SELECT 3) AS y3
-- [/VirtualRows2]
-- [/Jahreszahlen]
) AS years,
(
SELECT
Buchung_Von, Buchung_Bis
FROM
buchungen
) AS bookings
WHERE
YEAR(makedate(years.myYear, daysOfYear.day_in_year)) = years.myYear
-- [/Datumsliste]
) AS dates
WHERE
myYear=2013 AND
mydate >= Buchung_Von AND
mydate <= Buchung_Bis;
WHERE
mydate BETWEEN Buchung_Von AND Buchung_Bis;