added gitignore

This commit is contained in:
2026-07-27 10:15:23 +02:00
parent 2392a267d1
commit d4b6a51b7f
5 changed files with 284 additions and 3 deletions
+10 -3
View File
@@ -29,16 +29,23 @@ if (isset($_POST['idserviceordered'])) {
$idserviceordered = $_POST['idserviceordered'];
}
// Recupera la data di scadenza dell'ordine
$expiryQuery = "SELECT expireon FROM orderbook WHERE order_id = ?";
// Recover the expiry date of the order linked to the booking being rescheduled
$expiryQuery = "SELECT ob.expireon
FROM bookingclass bc
INNER JOIN orderbook ob ON bc.idorder = ob.idorderbook
WHERE bc.idbookingclass = ?";
$stmt = $conn->prepare($expiryQuery);
$stmt->bind_param("i", $idpreviousbooking);
$stmt->execute();
$expiryResult = $stmt->get_result();
$expiryDate = null;
if ($expiryResult->num_rows > 0) {
$row = $expiryResult->fetch_assoc();
$expiryDate = new DateTime($row['expireon']);
if (!empty($row['expireon'])) {
$expiryDate = new DateTime($row['expireon']);
}
}
$stmt->close();