-
Notifications
You must be signed in to change notification settings - Fork 0
/
transfer.php
70 lines (58 loc) · 2.14 KB
/
transfer.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
<?php
include('config/config.php');
$sql = "SELECT id, UserName, Email, Amount FROM custdata";
$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: 800px){
.t-balance{
display: none;
}
.email-collapse{
display: none;
}
th,td{
height: 50px;
font-size: 20px;
}
}
</style>
<section>
<div class="contianer">
<div class="transfer-title text-center">
<h1>Transfer money</h1>
<div class="underline "></div>
</div>
<table class="table table-hover text-center">
<thead class="thead-dark">
<tr>
<th class="trasfer-id">ID</th>
<th>UserName</th>
<th class="email-collapse">Email-Id</th>
<th class="t-balance">Balance</th>
<th>Transfer</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_assoc($result)) { ?>
<tr>
<td class="trasfer-id"><?php echo $row['id']; ?></td>
<td><?php echo $row['UserName']; ?></td>
<td class="email-collapse"><?php echo $row['Email']; ?></td>
<td class="t-balance"><?php echo $row['Amount']; ?></td>
<td>
<a class="btn btn-primary" href="transaction.php?id=<?php echo $row['id']; ?>" role="button">Transfer</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</section>
<?php include('Template/footer.php'); ?>
</html>