-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtotalResult.php
More file actions
57 lines (45 loc) · 1.51 KB
/
totalResult.php
File metadata and controls
57 lines (45 loc) · 1.51 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
<?php
require_once('./model/connection.php');
$title = "All polling unit results";
require_once('./header.php');
require_once('./navbar.php');
?>
<body style="background-color: #38405A;">
<div style="display: flex; align-items: center; justify-content: center; height: 100vh;">
<div class="container">
<form action="./controller/getTotalResult.php" method="post">
<select name="lga" id="" class="form-control">
<option>Select L.G.A</option>
<?php
$sql = "SELECT lga_id, lga_name FROM lga";
$result = mysqli_query($con, $sql);
while($row = mysqli_fetch_assoc($result)){
$name = $row['lga_name'];
$id = $row['lga_id'];
?>
<option value="<?=$id?>"><?=$name?></option>
<?php
}
?>
<!-- <input type="hidden" name="id" value="<?=$id?>"> -->
</select>
<div class="my-4 text-center">
<button class="btn btn-light" name="submit">Submit</button>
</div>
<?php
if(isset($_GET['success'])){
?>
<div class="bg-white border shadow p-3">
<p><?=urldecode($_GET['success'])?></p>
</div>
<?php
}
?>
</form>
</div>
</div>
</body>
<?php
require_once('./footer.php')
?>
</html>