-
Notifications
You must be signed in to change notification settings - Fork 0
/
org_list.php
65 lines (45 loc) · 1.31 KB
/
org_list.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
<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, Email ,Mobile,Address,city,Requirements FROM org_reg";
$result = $conn->query($sql);
echo "<h2><u>ORGNISATIONS LIST</u><h2>";
//while($row = $result->fetch_assoc()) {
echo "<table>
<tr>
<th>ORGANISATION NAME</th>
<th>EMAIL</th>
<th>MOBILE</th>
<th>ADDRESS</th>
<th>CITY</th>
<th>REQUIREMENTS</th>
</tr>";
while($row = $result->fetch_assoc())
{
echo "<tr>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['Email'] . "</td>";
echo "<td>" . $row['Mobile'] . "</td>";
echo "<td>" . $row['Address'] . "</td>";
echo "<td>" . $row['city'] . "</td>";
echo "<td>" . $row['Requirements'] . "</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>