-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin4.php
36 lines (31 loc) · 980 Bytes
/
admin4.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
<?php include('header.php') ?>
<center>
<table>
<tr>
<td align="left" nowrap="nowrap">
<?php
$sql = "SELECT * FROM btglogin WHERE userlevel < 3";
$result = $conn->query($sql);
// output data of each row
//while($row = $result->fetch_assoc())
while($result && $row = $result->fetch_assoc())
{
$userid = $row['userid'];
$usernames = $row['usernames'];
$newpass = $row['passwords'];
$district = $row['district'];
?>
<form method="POST" action="admin4a.php" name="button1">
<input type="Hidden" name="userid" value="<?php echo $userid;?>" />
<input type="submit" value="Edit" name="b13" style="width:35px; height: 24px; background-color: silver;" size=35 />
<?php
echo $row["usernames"] . " District " . " " . $row["district"] . "<br><br><hr>";
?>
</form>
<?php } ?>
</td>
</tr>
</table>
</center>
</body>
</html>