-
Notifications
You must be signed in to change notification settings - Fork 0
/
idrequest.php
65 lines (55 loc) · 1.08 KB
/
idrequest.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
<title>
Welcome</title>
<?php
session_start();
include("includes/adminloginheader.php");
if(!$_SESSION['admin_email']){
header("location:adminlogin.php");
}
?>
<br></br>
<br></br>
<center>
<div class="container">
<div class="col-sm-12">
<h2><font size="6" color="#ffffff">All Requested Data</font></h2>
<table class="table table-responsive table-hover table-bordered text-center" style="background-color: #FFFFFF;">
<tr>
<th>#</th>
<th>User id</th>
<th>Constituency</th>
<th>Acton</th>
</tr>
<?php
$conn=new mysqli("localhost","root","","votingsystem_db");
$select="select * from id_request_tbl";
$run=$conn->query($select);
if($run->num_rows>0){
$total=0;
while($row=$run->fetch_array()){
$total=$total+1;
$id=$row['id'];
?>
<tr>
<td><?php echo $total;?></td>
<td><?php echo $row['user_id'];?></td>
<td><?php echo $row['user_constituency'];?></td>
<td><a href="updateid.php?id=<?php echo $id;?>">update</a></td>
</tr>
<?php
}
}
else{
?>
<tr>
<td colspan="4" >Record not Found</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</center>
</body>
</html>