remaining ticket check

This commit is contained in:
Chris Smith
2019-04-01 09:18:43 -05:00
parent 9ed7e21b0b
commit 2152ea5f1f
2 changed files with 15 additions and 1 deletions

View File

@@ -15,7 +15,15 @@ if ($tickets <= 50) { ?>
<div class="alert alert-danger" role="alert">
<strong>Hurry!</strong> Only <?=$tickets?> tickets remaining!
</div>
<?php } ?>
<?php }
if (isset($_GET['error']) && $_GET['error'] == 'tickets') { ?>
<div class="alert alert-warning" role="alert">
Sorry. There are only <?=$tickets?> remaining. Please select an amount less than or equal to the tickets remaining.
</div>
<?php
}
?>
<div class="row">
<div class="col-md-4 order-md-1 mb-4">
<h4 class="d-flex justify-content-between align-items-center mb-3">