-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransferHistory.php
68 lines (56 loc) · 1.93 KB
/
transferHistory.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
<?php
include('config/config.php');
$sql = "SELECT id,Sender,Reciever,Tamount,Time FROM transactiondata";
$result = mysqli_query($conn, $sql);
mysqli_close($conn);
?>
<!DOCTYPE html>
<html>
<?php include('Template/header.php'); ?>
<link rel="stylesheet" href="css/transfer.css">
<style>
/* Media Query */
@media screen and (max-width: 580px){
.id{
display: none;
}
.time{
display: none;
}
th,td{
height: 20px;
font-size: 12px;
}
}
</style>
<section>
<div class="contianer">
<div class="transfer-title text-center">
<h1>Transfer History</h1>
<div class="underline "></div>
</div>
<table class="table table-hover text-center">
<thead class="thead-dark">
<tr>
<th class="id">ID</th>
<th>Sender</th>
<th>Reciever</th>
<th>Amount</th>
<th class="time">Time</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_assoc($result)) { ?>
<tr>
<td class="id"><?php echo $row['id']; ?></td>
<td><?php echo $row['Sender']; ?></td>
<td><?php echo $row['Reciever']; ?></td>
<td><?php echo $row['Tamount']; ?></td>
<td class="time"><?php echo $row['Time']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</section>
<?php include('Template/footer.php'); ?>
</html>