-
Notifications
You must be signed in to change notification settings - Fork 0
/
active_customers.php
81 lines (60 loc) · 1.49 KB
/
active_customers.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<head><title>Active Customers</title>
</head>
<link rel="stylesheet" type="text/css" href="css/active_customers.css"/>
<body>
<?php
include 'header.php' ;
include 'staff_profile_header.php' ;
include 'db_connect.php';
?>
<div class="active_customers_container">
<table border="1px" cellpadding="10">
<th>#</th>
<th>Username</th>
<th>Customer ID</th>
<th>Account No.</th>
<th>Mobile No.</th>
<th>Email ID</th>
<th>DOB</th>
<th>Current Balance</th>
<th>PAN</th>
<th>Citizenship</th>
<th>Debit Card No.</th>
<th>CVV</th>
<th>Last_Login</th>
<th>LastTransaction</th>
<th>Account Status</th>
<?php
$sql = "SELECT * from bank_customers";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$Sl_no = 1;
// output data of each row
while($row = $result->fetch_assoc()) {
echo '
<tr>
<td>'.$Sl_no++.'</td>
<td>'.$row['Username'].'</td>
<td>'.$row['Customer_ID'].'</td>
<td>'.$row['Account_no'].'</td>
<td>'.$row['Mobile_no'].'</td>
<td>'.$row['Email_ID'].'</td>
<td>'.$row['DOB'].'</td>
<td>$'.$row['Current_Balance'].'</td>
<td>'.$row['PAN'].'</td>
<td>'.$row['CITIZENSHIP'].'</td>
<td>'.$row['Debit_Card_No'].'</td>
<td>'.$row['CVV'].'</td>
<td>'.$row['Last_Login'].'</td>
<td>$'.$row['LastTransaction'].'</td>
<td>'.$row['Account_Status'].'</td>
</tr>';
}
}
?>
</table>
</div>
<?php include 'footer.php'; ?>
</body>
</html>