-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuccess.php
69 lines (66 loc) · 2.31 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
session_start();
require 'connection.php';
if(!isset($_SESSION['email'])){
header('location:products.php');
}else{
$user_id=$_GET['id'];
$confirm_query="update users_items set status='Confirmed' where user_id=$user_id";
$confirm_query_result=mysqli_query($con,$confirm_query) or die(mysqli_error($con));
}
?>
<?php
#if you wanna clear the items from user_items and not keep a record
/*
require 'connection.php';
session_start();
$item_id=$_GET['id'];
$user_id=$_SESSION['id'];
$delete_query="delete from users_items";
$delete_query_result=mysqli_query($con,$delete_query) or die(mysqli_error($con));
header('location: cart.php');
*/
?>
<!DOCTYPE html>
<html>
<head>
<title>Success</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- latest compiled and minified CSS -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css">
<!-- jquery library -->
<script type="text/javascript" src="bootstrap/js/jquery-3.2.1.min.js"></script>
<!-- Latest compiled and minified javascript -->
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<!-- External CSS -->
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div>
<?php
require 'header.php';
?>
<br>
<div class="container">
<div class="row">
<div class="col-xs-6">
<div class="panel panel-primary">
<div class="panel-heading"></div>
<div class="panel-body">
<p>Your order is confirmed. Thank you for shopping with us. <a href="products.php">Click here</a> to purchase any other item.</p>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<center>
<p>Developed by Pranav chhabra</p>
</center>
</div>
</footer>
</div>
</body>
</html>