-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstitutions.php
54 lines (46 loc) · 1.75 KB
/
institutions.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
<?php $title = "Blogs" ?>
<?php include "includes/components/header.php" ?>
<!-- Responsive navbar-->
<?php include "includes/components/navbar.php" ?>
<section style="margin: 5%;" class="pt-4">
<div class="row">
<form class='form-inline'>
</form>
</div>
<br>
<br>
<div class="row">
<?php
$sql = "SELECT DISTINCT * FROM institutions";
$res = mysqli_query($connection, $sql) or die("Failed " . mysqli_error($connection));
echo "<h3>Showing " . mysqli_num_rows($res) . " results:</h3>
<hr>
<br>";
if ($res) {
while ($row = mysqli_fetch_assoc($res)) {
echo "
<div class='card bg-light'>
<div class='card-body'>
<div class='row'>
<div class='col-xl-3 col-md-6'>
<img src='images/institutions/{$row['picture']}?1234324' width=250px/>
</div>
<div class='col-xl-6 col-md-4'>
<p><h4><strong> {$row['name']} </strong></h4></p>
<p>{$row['about']}</p>
<p><strong>Address:</strong><br> {$row['area']}, <br>{$row['city']}, {$row['state']}</p>
<p><strong>Phone:</strong> {$row['phone']}</p>
</div>
</div>
</div>
</div>
<br>
<hr>
<br>
";
}
}
?>
</div>
</section>
<?php include "includes/components/footer.php" ?>