-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.php
53 lines (44 loc) · 1.53 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
require("includes/common.php");
if (!isset($_SESSION['email'])) {
header('location: index.php');
}
$user_id = $_SESSION['user_id'];
//We will change the status of the items purchased by the user to 'Confirmed'
$query = "UPDATE users_items SET status='Confirmed' WHERE user_id=" . $user_id . " and status='Added to cart'";
mysqli_query($con, $query) or die(mysqli_error($con));
?>
<!DOCTYPE html>
<!--
-->
<html>
<head>
<title>E-Store|Success</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css">
<script type="text/javascript" src="bootstrap/js/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/css.css" type="text/css">
</head>
<body>
<?php
include 'includes/header.php';
?>
<div class="container"><br><br><br><br><br><br>
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<table class="table table-striped table-center">
<thead>
<tr>
<td class="text-center"><p>Thank you for ordering from E-Store. The order shall be delivered to you shortly.</p> </td>
</tr>
<tr>
<td class="text-center"><br><p>Order some more electronic item <a href="products.php">here</a></p></td>
</tr>
</thead>
</table>
</div>
</div>
</div>
</body>
</html>