-
Notifications
You must be signed in to change notification settings - Fork 3
/
sin.php
46 lines (45 loc) · 1.21 KB
/
sin.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
<?php
include "connection.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>City people Database</title>
<?php
include 'head.php';
?>
</head>
<body class="b-ground">
<div class="container">
<h3 style="text-align:center">City People Database</h3>
<?php
$check = "SELECT * FROM people_city";
$query = $link->query($check);
?>
<table class="table">
<thead>
<tr class="danger">
<th>Name</th>
<th>Email</th>
<th>Category</th>
<?php
while($data = mysqli_fetch_assoc($query))
{
echo "
<tr>
<td>'$data[name]'</td>
<td>'$data[email]'</td>
<td>'$data[category]'</td>
</tr>
";
}
?>
</tr>
</thead>
</table>
</div>
</body>
</html>