-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmindoctor.php
69 lines (56 loc) · 1.77 KB
/
admindoctor.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animal Safety !</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css">
</head>
<body>
<?php include 'connect.php'; ?>
<?php include 'adminheader.php'; ?>
<?php
error_reporting(0);
$query = "select * from login";
$data = mysqli_query($con, $query);
$total = mysqli_num_rows($data);
// echo "$total";
// echo $result['email'] . " " . $result['username'] . " " . $result['mobile'] . " " . $result['password'];
if ($total != 0) {
?>
<div class="mx-5 my-5 bg-light outline-dark text-center">
<table class="table" method="post" action="delete.php">
<tr>
<th>email</th>
<th>username</th>
<th>mobile</th>
<th>Delete doctor</th>
</tr>
<?php
while ($result = mysqli_fetch_assoc($data)) {
// echo " $result['email'] . " " . $result['username'] . " " . $result['mobile'] . " " . $result['password'] . "<br>" ";
echo " <tr >
<td for=email>" . $result['email'] . "</td>
<td>" . $result['username'] . "</td>
<td>" . $result['mobile'] . "</td>
<td> <button class='btn btn-secondary'><a href='#'>delete</a></button> </td>
</tr> ";
}
} else {
echo "not having records";
}
?>
</table>
</div>
<?php include 'adminfooter.php'; ?>
</body>
<style>
a {
color: white;
}
a:hover {
color: white;
}
</style>
</html>