-
Notifications
You must be signed in to change notification settings - Fork 0
/
question_15.php
36 lines (33 loc) · 860 Bytes
/
question_15.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
<?php
require_once("config.php");
require_once("functions.php");
$privees = NULL;
$films = films_all;
foreach ($films as $film) {
if($film[Private] = true);
$film[Private] = $privees;
}
echo $privees;
?>
<!DOCTYPE>
<html>
<head>
<title>PHP - P20</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style>.img-mov {height: 300px;} .col-md-3 {margin-bottom: 15px;}</style>
</head>
<body>
<div class="col-md-12">
<h1>Question 5</h1>
<hr />
<div class="container">
<ul class="row">
<?php foreach($privees as $privee): ?>
<li class="col-md-12"><?php echo $privees ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</body>
</html>