-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.php
100 lines (90 loc) · 3.3 KB
/
view.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
include("connection.php");
$sql="select * from customers";
$result=mysqli_query($con,$sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="star.png" type="image/x-icon">
<title>Donation list</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- bootstrap icon -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="payment.css">
</head>
<body>
<nav class="navbar navbar-inverse nav">
<div class="container">
<div class="navbar-header font">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><span class="slack"><i class="bi bi-slack"></i></span> <span class="hh">H</span><span class="hh"></span><span class="el">ELPING </span><span class="hh">H</span><span class="el">ANDS</span></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html"><i class="bi bi-house-door-fill"></i>Home</a></li>
<li><a href="index.html#section5">Donate Now</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<h1 class="text-center">Donation For Helping Hands</h1>
<br>
<hr>
<br>
</div>
</div>
<?php
if(mysqli_num_rows($result)>0)?>
<table class="table-hover">
<tr>
<th>ID</th>
<th>First_Name</th>
<th>Last_Name</th>
<th>Email</th>
<th>City</th>
<th>Donation_Amount</th>
<tr>
<?php
$i=0;
while($row=mysqli_fetch_array($result))
{
?>
<tbody>
<tr>
<td><?php echo $row["ID"];?></td>
<td><?php echo $row["First_name"];?></td>
<td><?php echo $row["Last_name"];?></td>
<td><?php echo $row["Email"];?></td>
<td><?php echo $row["City"];?></td>
<td><?php echo $row["Donation_Amount"];?></td>
<br>
</tr>
</tbody>
<?php
$i++;
}
?>
</table>
<section id="section10">
<header>
<nav class="navbar navbar-inverse foot">
<div class="container">
<a class="navbar-brand" href="#"><b>Created By Minal Patil For Ansrcoach Project | All Rights Reserved!© 2022</b></a>
</div>
</nav>
</header>
</section>
</body>
</html>