-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.php
28 lines (25 loc) · 870 Bytes
/
success.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
include 'includes/navigation_bar.php';
if(!isset($_SESSION['ORDER_ID'])){
redirect(FRONT_SITE_PATH.'shop');
}
if(isset($_GET['id']) && $_GET['id']>0){
$id= mysqli_escape_string($con,$_GET['id']);
mysqli_query($con,"DELETE FROM user_cart WHERE user_id ='$id'");
}
?>
<!-- Success Message -->
<div class="container success_page">
<div class="row">
<div class="col-xl-12 text-center">
<img src="<?php echo WEBSITE_PATH; ?>assets/success.jpg" alt="">
<h2>Your Order has been <br> placed successfully !</h2>
<h3>Your Order Id Is ~ <?php echo $_SESSION['ORDER_ID']?></h3>
<p>Future Communication Check Your Email.</p>
</div>
</div>
</div>
<!--X- Success Message -X-->
<?php
include 'includes/footer.php';
?>