-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfilm.php
148 lines (141 loc) · 5.99 KB
/
film.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
include 'header.php';
include 'baglan.php';
$query = "select * from filmler;";
$result = $conn->query($query);
$turk_filmleri = array();
$basyapit_film = array();
$biyografi_filmi = array();
$korku_filmi = array();
$aksiyon = array();
$marvel = array();
while($row = $result->fetch_assoc())
{
if($row['film_kategori'] == "turk_filmleri"){
array_push($turk_filmleri, $row);
}
if($row['film_kategori'] == "basyapit_film"){
array_push($basyapit_film, $row);
}
if($row['film_kategori'] == "biyografi_filmi"){
array_push($biyografi_filmi, $row);
}
if($row['film_kategori'] == "korku_filmi"){
array_push($korku_filmi, $row);
}
if($row['film_kategori'] == "aksiyon"){
array_push($aksiyon, $row);
}
if($row['film_kategori'] == "marvel"){
array_push($marvel, $row);
}
} ?>
<section id="features" class="sectionArea">
<div class="featuresTop">
<h2 class="sectionHeader">FİLMLER</h2>
<p>Evde kaldığın bu süreçte izleyebileceğin film listeleri </p>
</div>
<div class="featuresBody">
<div class="container">
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film1.jpeg">
</div>
<div class="itemText">
<h3>IMBD'ye GÖRE EN İYİ TÜRK FİLMLERİ</h3>
<p>
<?php foreach($turk_filmleri as $turk){
echo $turk['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film2.jpeg">
</div>
<div class="itemText">
<h3>MUTLAKA İZLENMESİ GEREKEN BAŞYAPIT FİLMLER</h3>
<p>
<?php foreach($basyapit_film as $basyapit){
echo $basyapit['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film3.jpeg">
</div>
<div class="itemText">
<h3>IMDB’ye GÖRE EN İYİ BİYOGRAFİ FİLMLERİ</h3>
<p>
<?php foreach($biyografi_filmi as $biyografi){
echo $biyografi['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="featuresBody">
<div class="container">
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film4.jpeg">
</div>
<div class="itemText">
<h3>EN İYİ KORKU FİLMLERİ</h3>
<p>
<?php foreach($korku_filmi as $korku){
echo $korku['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film5.jpeg">
</div>
<div class="itemText">
<h3>AKSİYONU TAVAN YAPTIRAN ENFES FİLMLER</h3>
<p>
<?php foreach($aksiyon as $aks){
echo $aks['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/film6.jpeg">
</div>
<div class="itemText">
<h3>IMDB’ye GÖRE EN İYİ MARVEL FİLMLERİ</h3>
<p>
<?php foreach($marvel as $marv){
echo $marv['film_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
include 'footer.php';
?>