-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransaction-history.php
63 lines (58 loc) · 2 KB
/
transaction-history.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./assets/css/app.css" />
<link
href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css"
rel="stylesheet"
/>
<title>S&B Bank | Transaction History</title>
<link rel="shortcut icon" href="./assets/images/favicon.png">
</head>
<body>
<?php
include "./components/header.php";
?>
<main class="crtbanking">
<div class="crtComponent">
<?php
require "./components/all-in-one-component.php"
?>
<div class="compMainNav">
<h2> Transaction History </h2>
<div class="userTable">
<table class="userDetails">
<tr>
<th>Sr. No.</th>
<th>Sender</th>
<th>Receiver</th>
<th>Amount</th>
<th>Date and Time</th>
</tr>
<?php
require 'backend/config.php';
$select = "SELECT * FROM transaction_history ORDER BY transfer_date desc";
$selectResult = $conn->query($select);
$srno = 1;
while($row = mysqli_fetch_array($selectResult)){
echo "<tr><td class= 'center'>$srno</td>";
echo "<td>$row[sender]</td>";
echo "<td>$row[receiver]</td>";
echo "<td class= 'center'>₹ $row[amount]</td>";
echo "<td class='center'>$row[transfer_date]</td></tr>";
$srno += 1;
}
?>
</table>
</div>
</div>
</div>
</main>
<?php
include './components/footer.php';
?>
</body>
</html>