-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblock.php
More file actions
38 lines (37 loc) · 1.27 KB
/
Copy pathblock.php
File metadata and controls
38 lines (37 loc) · 1.27 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
<?php
include("database.php");
$result=mysqli_query($connect,"select * from d_userinfo order by user_Id ");
?>
<!DOCTYPE html>
<html>
<head></head>
<body style="background-size:cover;background-image:url('img/pic1.jpg');">
<table style="margin:10% auto;width:60%;height:auto;background-color:rgba(22,144,167);font-family:courier;" BORDER="2">
<tr style="font-weight:bold">
<th>USER ID</th>
<th>FIRST NAME</th>
<th>LAST NAME</th>
<th>PHONE NO.</th>
<th>EMAIL ID</th>
<th>HOME BRANCH</th>
<th>CLOSE</th>
</tr>
<?php
while($res=mysqli_fetch_array($result)){
echo '<tr>';
echo '<td>'.$res['user_Id'].'</td>';
echo '<td>'.$res['First_name'].'</td>';
echo '<td>'.$res['Last_name'].'</td>';
echo '<td>'.$res['phone'].'</td>';
echo '<td>'.$res['email'].'</td>';
echo '<td>'.$res['home_branch'].'</td>';
echo "<td><a href=\"delete.php?id=$res[user_Id]\"><input style='width:100%' type='submit' value='Close account'></a>";
echo '</tr>';
}
?>
<div style="width:2cm;padding:0.3cm;font-family:courier;height:auto;background-color:rgba(22,144,167);font-family:courier;">
<a style="font-decoration:none;font-weight:bold;" href="main.php">GO BACK</a>
</div>
</table>
</body>
</html>