-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransaction.php
More file actions
77 lines (60 loc) · 2.32 KB
/
transaction.php
File metadata and controls
77 lines (60 loc) · 2.32 KB
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
<?php
include 'connection.php';
$q="select * from transactions";
$query = mysqli_query($con,$q);
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<style>
body{
background-image: url("unsplash25.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
<body>
<div class="container">
<div class="col-log-12">
<br><br>
<h1 class="text-center " style="color:black" >Transaction Statement</h1>
<table class="table table-striped table-hover table-bordered"><br>
<tr class="bg-dark text-white text-center">
<th>Sender's ID</th>
<th>Senders Name</th>
<th>Receiver's ID</th>
<th>Receiver's Name</th>
<th>Amount</th>
</tr>
<?php
include 'connection.php';
$q="select * from transactions";
$query = mysqli_query($con,$q);
while($res = mysqli_fetch_array($query))
{
?>
<tr style="color:white;background-color: rgba(0,0,0,.6);" class="text-center">
<td> <?php echo $res['sid'] ;?></td>
<td><?php echo $res['sname'] ;?></td>
<td><?php echo $res['rid'] ;?></td>
<td><?php echo $res['rname'] ;?></td>
<td><?php echo $res['amount'] ;?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
<div class="center" style="text-align: center" >
<button> <a href="index.php" style="color:chocolate; " style="text-decoration: none">Back to Home</a> </button>
</div>
</body>
</html>