-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.php
68 lines (56 loc) · 1.84 KB
/
submit.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
<?php
include 'config.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Health Doc</title>
<link rel="stylesheet" type="text/css" href="submit.css">
</head>
<body>
<div class="container">
<button class="btn"><a href="manage.php" class="text-light">Add Pharmacist</a></button>
</div>
<div class="tbl">
<table border="1">
<tr>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Mobile</th>
<th style="width:30%">Operations</th>
<!-- <th>Remove</th> -->
</tr>
<?php
$sql = "SELECT * FROM `contacts`";
$result = mysqli_query($con, $sql);
if ($result) {
while ($row = mysqli_fetch_assoc($result)) {
$id = $row['id'];
$name = $row['name'];
$email = $row['email'];
$mobile = $row['mobile'];
?>
<tr>
<td><?php echo $row['id'] ?> </td>
<td><?php echo $row['name'] ?></td>
<td><?php echo $row['email'] ?></td>
<td><?php echo $row['mobile'] ?></td>
<td>
<?php
echo '<a href="updateh.php?updateid='.$id.'"><button style="color:white; background-color:green; width:90px;
height:50px; border-radius:8px; cursor: pointer; border: none; font-size: 100%; margin-left:10px;">Update</button></a>';
echo '<a href="deleteh.php?deleteid='.$id.'"><button style="color:white; background-color:red; width:90px;
height:50px; border-radius:8px; cursor: pointer; border: none; font-size: 100%; margin-left:10px;">Delete</button></a>';
?>
</td>
</tr>
<?php
}
}
?>
</tr>
</table>
</div>
</body>
</html>