-
Notifications
You must be signed in to change notification settings - Fork 0
/
transaction.php
83 lines (81 loc) · 2.43 KB
/
transaction.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
78
79
80
81
82
83
<?php
include("connection.php");
$sql ="SELECT * from `transaction`";
$query =mysqli_query($conn, $sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transaction History</title>
<link rel="stylesheet" href="Main.css">
<style>
body{
background-image: url(notes.jpg);
background-size: cover;
}
a:link, a:visited
{
background-color: rgb(8, 8, 65);
color: white;
text-decoration: none;
}
a:hover
{
background-color: whitesmoke;
color: black;
}
#customer {
background-color: whitesmoke;
opacity: 0.7;
border-collapse: collapse;
width: 80%;
margin-top: 30px;
border: 2px solid navy;
font-size: 20px;
color: rgb(8,8,65);
font-family: Trebuchet MS;
}
#customer th, #customer td {
text-align: center;
padding: 12px;
}
#customer tr {
border-bottom: 1px solid goldenrod;
}
#customer tr.header, #customer tr:hover {
background-color: goldenrod;
}
</style>
</head>
<body>
<div class="Title">Ace Finance</div>
<div class="navigation">
<a href="home.php">Home</a>
<a href="customer.php">Customer</a>
<a href="transaction.php" style="background-color:whitesmoke; color: black;">Transaction</a>
</div>
<table id="customer" align="center">
<tr class="header">
<th>Sender</th>
<th>Receiver</th>
<th>Amount</th>
<th>Time Stamp</th>
</tr>
<?php
while($rows = mysqli_fetch_assoc($query))
{
?>
<tr>
<td><?php echo $rows['sender']; ?></td>
<td><?php echo $rows['receiver']; ?></td>
<td>₹<?php echo $rows['balance']; ?> </td>
<td><?php echo $rows['datetime']; ?> </td>
<?php
}
?>
</tr>
</table>
</body>
</html>