-
Notifications
You must be signed in to change notification settings - Fork 1
/
history.php
86 lines (65 loc) · 1.58 KB
/
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<title>History-page</title>
<style type="text/css">
*{
height: auto;
overflow: auto;
}
.cap{
font-size: 28px;
border:none;
color: #3678d6;
background-color: #accf4c;
border-radius: 5px;
text-decoration: none;
}
.cent{
text-align: center;
width: 100%;
height: auto;
overflow-y: hidden;
/*justify-content: center;*/
}
.cap:hover{
background-color: #3678d6;
color: #accf4c;
}
.test{
outline: dashed;
border:none;
height: 60px;
width: 170px;
}
</style>
</head>
<body>
</body>
</html>
<link rel="stylesheet" href="style.css">
<?php
include "connection.php";
$sql = 'SELECT sender ,receiver ,credt FROM history';
$result = mysqli_query($conn,$sql);
if($result = mysqli_query($conn, $sql)){
if(mysqli_num_rows($result) > 0){
echo "<table width='100%' cellspacing='20px' border='3px' >";
echo "<center><tr>";
echo "<th> Sender </th>";
echo "<th> Receiver </th>";
echo "<th> Amounts </th>";
echo "</tr>";
while($row = mysqli_fetch_array($result)){
echo "<tr>";
echo "<td ><center>" . $row['sender'] . "</td> ";
echo "<td ><center>" . $row['receiver'] . "</td> ";
echo "<td ><center>" . $row['credt'] . "</td> ";
echo "</tr>";
}
echo "</table>";
}}
?>
<div class="cent">
<button class="test"> <a href="display.php?id=1" class="cap">View Users</a></button>
</div>