-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_users_up.php
41 lines (40 loc) · 1.33 KB
/
manage_users_up.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
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<?php
//Connect to database
require'connectDB.php';
$sql = "SELECT * FROM users WHERE del_fingerid=0 ORDER BY id DESC";
$result = mysqli_stmt_init($conn);
if (!mysqli_stmt_prepare($result, $sql)) {
echo '<p class="error">SQL Error</p>';
}
else{
mysqli_stmt_execute($result);
$resultl = mysqli_stmt_get_result($result);
if (mysqli_num_rows($resultl) > 0){
while ($row = mysqli_fetch_assoc($resultl)){
?>
<TR>
<TD><?php
if ($row['fingerprint_select'] == 1) {
echo "<img src='icons/ok_check.png' title='The selected UID'>";
}
$fingerid = $row['fingerprint_id'];
?>
<form>
<button type="button" class="select_btn" id="<?php echo $fingerid;?>" title="select this UID"><?php echo $fingerid;?></button>
</form>
</TD>
<TD><?php echo $row['username'];?></TD>
<TD><?php echo $row['gender'];?></TD>
<TD><?php echo $row['serialnumber'];?></TD>
<TD><?php echo $row['user_date'];?></TD>
<TD><?php echo $row['time_in'];?></TD>
</TR>
<?php
}
}
}
?>
</tbody>
</table>