-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeleteUser.php
More file actions
99 lines (61 loc) · 1.52 KB
/
Copy pathDeleteUser.php
File metadata and controls
99 lines (61 loc) · 1.52 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Delete User</title>
<?php include("head.php"); ?>
<script type="text/javascript">
function show()
{
document.all.style.display='block';
}
function hide()
{
document.all.style.display='none';
}
</script>
</head>
<style>
body {
background-image: url("images/out.jpg");
background-repeat: no-repeat ;
background-size: 100% 100%;
}
</style>
<body style="background-color:black" >
<?php include("navbar.php"); ?>
<br/>
<div id="body">
<form action="DeleteUserphp.php" method="post" style="border: 2px solid white;border-radius: 8px;padding-top: 1%; padding-left:1% ;padding-right:1% ;padding-bottom:2%;width:460px; margin-right:auto; margin-left:auto; ;background-color:#FFFFFF;background-size: 100%">
<div class="form-group">
<label for="dnjedpiw">Select username of the user you want to remove</label>
<select name="user" class="form-control" style="width:70%" >
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("Opera",$con);
$sql = mysql_query("SELECT `uname` from `users`",$con);
while ($row = mysql_fetch_array($sql)){
echo "<option value=\"". $row['uname'] ."\">" . $row['uname'] . "</option>";
}
?>
</select>
</div>
<button class="btn btn-primary">Remove</button>
</form>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
<?php include("footer.php"); ?>
</body>
</html>