forked from himanshukumar9/CHATBOX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanageUsers.php
More file actions
44 lines (42 loc) · 1.45 KB
/
manageUsers.php
File metadata and controls
44 lines (42 loc) · 1.45 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
<?php
include("configuration.php");
session_start();
if(!isset($_SESSION['id']))
{
header("location:adminLogin.php");
}
$sql=mysqli_query($al,"SELECT * FROM users");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="scripts/styleSheet.css" rel="stylesheet" type="text/css" />
<title>Manage Users</title>
</head>
<body>
<span class="heading">Manage Users</span><span style="float:right"><a href="logout.php">
<img src="images/logout.png" height="50" width="100" /></a></span>
<hr style="border:6px dotted #63C;"/><br />
<div align="center">
<table class="table" cellpadding="4" cellspacing="4">
<tr class="tableHead" style="font-size:15px;"><th>Name</th><th>Nick Name</th><th>Date of Birth</th><th>Email</th><th>Contact</th><th>Date</th>
<th>Delete</th></tr>
<?php
while($b=mysqli_fetch_array($sql))
{
?>
<tr class="msg"><td><?php echo $b['name'];?></td>
<td><?php echo $b['nick'];?></td>
<td><?php echo $b['dob'];?></td>
<td><?php echo $b['email'];?></td>
<td><?php echo $b['contact'];?></td>
<td><?php echo $b['date'];?></td>
<td><a href="deleteUser.php?del=<?php echo $b['id'];?>" onclick="return confirm('Are You Sure..?');">Delete</a></td></tr>
<?php } ?>
</table>
<br />
<br />
<a href="adminHome.php">BACK</a>
</body>
</html>