-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
52 lines (45 loc) · 1.67 KB
/
index.php
File metadata and controls
52 lines (45 loc) · 1.67 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
<?php
require_once('./model/connection.php');
$title = "HOME";
require_once('./header.php');
require_once('./navbar.php');
?>
<body style="background-color: #38405A;">
<div class="all-div">
<div>
<div class="container mt-5">
<h5 class="text-center mb-4 text-uppercase text-white">Result for anocha north polling unit</h5>
<table class="table table-responsive table borderless bg-white border">
<thead>
<tr align="center">
<th>S/N</th>
<th>Party Name</th>
<th>Party Result</th>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM announced_pu_results WHERE polling_unit_uniqueid = 8";
$result = mysqli_query($con, $sql);
$num = 1;
while($row = mysqli_fetch_array($result)){
$party_name = $row['party_abbreviation'];
$score = $row['party_score'];
?>
<tr align="center">
<td><a href=""><?=$num++?></a></td>
<td><?=$party_name?></td>
<td><?=$score?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</body>
<?php
require_once('./footer.php')
?>