added gitignore
This commit is contained in:
+10
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user