-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtransaction_history.php
71 lines (49 loc) · 1.52 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
64
65
66
67
68
69
70
71
<?php
$page_title = "Transaction history";
include "includes/header.php"; ?>
<?php include "includes/navbar_transaction_history.php"; ?>
<?php include "db.php"; ?>
<div class="container">
<div class="jumbotron">
<h1 class="mb-3 h2 text-center" style = "color:white;"><strong>TRANSACTION HISTORY</stong> </h1>
<?php
$query = "SELECT * FROM transaction_history";
$select = mysqli_query($connection,$query);
?>
<table class="table table-bordered table-secondary" style="background-color:white;">
<thead class="table-dark">
<tr>
<th> ID </th>
<th> SENDER </th>
<th> RECIVER </th>
<th> AMOUNT </th>
<th> TRANSACTION DATE TIME </th>
</tr>
</thead>
<?php
if($select)
{
while($row = mysqli_fetch_array($select))
{
?>
<tbody>
<tr>
<th><?php echo $row['id']; ?></th>
<th><?php echo $row['s_name']; ?></th>
<th><?php echo $row['s_reciver']; ?></th>
<th><?php echo $row['amount']; ?></th>
<th><?php echo $row['transaction_date_time']; ?></th>
</tr>
</tbody>
<?php
}
}
else
{
echo "no record found";
}
?>
</table>
</div>
</div>
<?php include "includes/footer.php"; ?>