-
Notifications
You must be signed in to change notification settings - Fork 0
/
volunteers_notifications_all.php
67 lines (47 loc) · 1.41 KB
/
volunteers_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 name,age ,mobile_number,email,gender,qualification,description FROM volunteer_register";
$result = $conn->query($sql);
echo "<h2><u>VOLUNTEERS LIST</u><h2>";
//while($row = $result->fetch_assoc()) {
echo "<table>
<tr>
<th> NAME</th>
<th>AGE</th>
<th>MOBILE NUMBER</th>
<th>EMAIL</th>
<th>GENDER</th>
<th>QUALIFICATIONS</th>
<th>DESCRIPTION</th>
</tr>";
while($row = $result->fetch_assoc())
{
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['age'] . "</td>";
echo "<td>" . $row['mobile_number'] . "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "<td>" . $row['gender'] . "</td>";
echo "<td>" . $row['qualification'] . "</td>";
echo "<td>" . $row['description'] . "</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>