-
Notifications
You must be signed in to change notification settings - Fork 0
/
donar_notifications_all.php
67 lines (47 loc) · 1.4 KB
/
donar_notifications_all.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
<html>
<body bgcolor="lightblue">
<div align="left">
<?php
$servername = "localhost";
$username = "username";
$password = "";
$dbname = "helping_hands";
// Create connection
$conn = new mysqli('localhost', 'root', '', 'helping_hands');
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT donar_name, contact_number ,email,address,city,description,item FROM donation_register";
$result = $conn->query($sql);
echo "<h2><u>DONARS LIST</u><h2>";
//while($row = $result->fetch_assoc()) {
echo "<table>
<tr>
<th>DONAR NAME</th>
<th>CONTACT NUMBER</th>
<th>EMAIL</th>
<th>ADDRESS</th>
<th>CITY</th>
<th>DESCRIPTION</th>
<th>ITEM</th>
</tr>";
while($row = $result->fetch_assoc())
{
echo "<tr>";
echo "<td>" . $row['donar_name'] . "</td>";
echo "<td>" . $row['contact_number'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "<td>" . $row['address'] . "</td>";
echo "<td>" . $row['city'] . "</td>";
echo "<td>" . $row['description'] . "</td>";
echo "<td>" . $row['item'] . "</td>";
echo "</tr>";
}
echo "</table>";
/*echo "<br> <br> <br>NAME:". $row["name"]. " - EMAIL: ". $row["Email"]. " - MOBILE:". $row["mobile"]. " - ADDRESS: ". $row["Address"]. " - CITY: ". $row["city"]. "<br>" ;*/
$conn->close();
?>
</div>
</body>
</html>