-
Notifications
You must be signed in to change notification settings - Fork 0
/
event_notifications.php
63 lines (41 loc) · 1.18 KB
/
event_notifications.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
<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, contact_number ,date_,event FROM event";
$result = $conn->query($sql);
echo "<h2><u>EVENTS </u><h2>";
//while($row = $result->fetch_assoc()) {
echo "<table border=1>
<tr>
<th> NAME</th>
<th>CONTACT NUMBER</th>
<th>DATE</th>
<th>EVENT</th>
</tr>";
while($row = $result->fetch_assoc())
{
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['contact_number'] . "</td>";
echo "<td>" . $row['date_'] . "</td>";
echo "<td> " .$row['event'] . "</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>