-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDisplay_Project.php
More file actions
60 lines (50 loc) · 1.19 KB
/
Display_Project.php
File metadata and controls
60 lines (50 loc) · 1.19 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
<!DOCTYPE html>
<html>
<head>
<title>Display all records of Citizen from Database</title>
<style>
body{
margin: 0px;
padding: 0px;
background: url(img/23.jpg);
height: 1000px;
}
.center {
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<h2>Citizens Details</h2>
<table border="2" align="center">
<tr>
<td>Project Name</td>
<td>ProjectNo</td>
<td>Budget</td>
<td>Project Company</td>
<td>Start Date</td>
<td>End Date</td>
</tr>
<?php
include "citizen_insert_display.php"; // Using database connection file here
$records = mysqli_query($db,"select * from project"); // fetch data from database
while($data = mysqli_fetch_array($records))
{
?>
<tr>
<td><?php echo $data['Project_name']; ?></td>
<td><?php echo $data['Project_No']; ?></td>
<td><?php echo $data['Budget']; ?></td>
<td><?php echo $data['p_company']; ?></td>
<td><?php echo $data['start_date']; ?></td>
<td><?php echo $data['end_date']; ?></td>
</tr>
<?php
}
?>
</table>
<?php mysqli_close($db); // Close connection ?>Click
<button onclick="document.location='Citizen_Insert.html'">Go to Homepage</button>
</body>
</html>