-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransactionhistory.php
44 lines (42 loc) · 1.09 KB
/
transactionhistory.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
<?php
include ('header.php');
?>
<?php
include ('connection.php');
$query = "SELECT * FROM `transaction`";
$result1 = mysqli_query($connect, $query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Spark | Transaction History</title>
<link rel="stylesheet" href="transactionhistory.css">
</head>
<body>
<section>
<h1>Transaction Details</h1>
<table>
<tr>
<th>Sender Name</th>
<th>Receiver Name</th>
<th>Transfer Amount (Rs)</th>
<th>Date & Time</th>
</tr>
<?php
while($rows=$result1->fetch_assoc())
{
?>
<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>
</tr>
<?php
}
?>
</table>
</section>
</body>
</html>