-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelResume.php
More file actions
32 lines (28 loc) · 1.04 KB
/
delResume.php
File metadata and controls
32 lines (28 loc) · 1.04 KB
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
<?php
session_start();
$servername = "localhost";
$username = $_SESSION['Username'];
$dbname = "wpl";
$conn = mysqli_connect($servername, 'root', '', $dbname);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$result = mysqli_query($conn,"DELETE FROM Resume WHERE Username = '$username'")
OR die("Failed to query database ".mysqli_error($conn));
header('Location:first.php');
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<script type="text/javascript">alert("Resume Deleted")</script>
</body>
</html>