-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsponsoren.php
55 lines (40 loc) · 1.23 KB
/
sponsoren.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
<?php
include_once("./Includes/connection.php");
include_once("./Includes/links.php");
?>
<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="./CSS/sponsoren.css" type="text/css">
<head>
<script src="./JS/index.js"></script>
<meta charset="UTF-8">
<title>Sponsoren</title>
</head>
<body style="background-image: linear-gradient(#2BC0E4, #EAECC6); background-repeat: no-repeat; background-attachment: fixed;">
<?php
include_once("./Includes/navbar.php");
?>
<div class="row mt-4">
<?php
$sth = $conn->prepare("SELECT * FROM sponsor");
$sth->execute();
/* Fetch all of the remaining rows in the result set */
$result = $sth->fetchAll();
?>
<?php
foreach ($result as $row) {
?>
<div class="card col-md-3 col-sm-12" style="width: 18rem;">
<img class="card-img-top mt-4" src="<?php echo $row['SponsorLogo']?>" alt="Card image cap">
<div class="card-body">
<h5 class="card-title"><tr><td><?php echo $row['Sponsornaam']?></td></tr></h5>
<p class="card-text"><tr><td><?php echo $row['SponsorInfo']?></td></tr></p>
<a href="<?php echo $row['SponsorWebsite']?>" class="btn btn-block btn-secondary">Naar website</a>
</div>
</div>
<?php
}
?>
</div>
</body>
</html>