-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdelete.php
48 lines (42 loc) · 1.46 KB
/
delete.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Delete Product</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
.wrapper{
width: 600px;
margin: 0 auto;
}
</style>
</head>
<?php
$id=$_GET["id"];
// Include config file
require_once "dist/php/connection.php";
// Attempt select query execution
$sql = "SELECT * FROM products where product_id=$id";
?>
<body>
<div class="wrapper">
<div class="container fluid shadow rounded pt-4 pb-4 mt-4 mb-4">
<div class="row">
<div class="col-md-12">
<h2 class="mt-5 mb-3">Delete Product</h2>
<form action="delete_function.php" method="post">
<div class="alert alert-danger">
<input type="hidden" name="id" value="<?php echo $id; ?>"/>
<p>Are you sure you want to delete this product?</p>
<p>
<input type="submit" value="Yes" class="btn btn-danger">
<a href="landing_Adminpage.php" class="btn btn-secondary">No</a>
</p>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>