-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdizi.php
150 lines (141 loc) · 6.16 KB
/
dizi.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
149
150
<?php
include 'header.php';
include 'baglan.php';
$query = "select * from diziler;";
$result = $conn->query($query);
$yabanci_dizi = array();
$netflix = array();
$bilim_kurgu = array();
$turk_dizi = array();
$filmlovers_okur = array();
$carpici_dizi = array();
while($row = $result->fetch_assoc())
{
if($row['dizi_kategori'] == "yabanci_dizi"){
array_push($yabanci_dizi, $row);
}
if($row['dizi_kategori'] == "netflix"){
array_push($netflix, $row);
}
if($row['dizi_kategori'] == "bilim_kurgu"){
array_push($bilim_kurgu, $row);
}
if($row['dizi_kategori'] == "turk_dizi"){
array_push($turk_dizi, $row);
}
if($row['dizi_kategori'] == "filmlovers_okur"){
array_push($filmlovers_okur, $row);
}
if($row['dizi_kategori'] == "carpici_dizi"){
array_push($carpici_dizi, $row);
}
} ?>
<section id="features" class="sectionArea">
<div class="featuresTop">
<h2 class="sectionHeader">DİZİLER</h2>
<p>Biri dizi önerisi mi istedi? </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/diziliste1.jpg">
</div>
<div class="itemText">
<h3>EN İYİ YABANCI DİZİLER</h3>
<p>
<?php foreach($yabanci_dizi as $yabanci){
echo $yabanci['dizi_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/diziliste2.jpg">
</div>
<div class="itemText">
<h3>EN POPÜLER NETFLİX DİZİLERİ</h3>
<p>
<?php foreach($netflix as $netf){
echo $netf['dizi_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/diziliste3.jpg">
</div>
<div class="itemText">
<h3>EN BEĞENİLEN BİLİMKURGU DİZİLERİ</h3>
<p>
<?php foreach($bilim_kurgu as $bilim){
echo $bilim['dizi_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/diziliste4.jpg">
</div>
<div class="itemText">
<h3>IMBD'ye GÖRE EN İYİ TÜRK DİZİLERİ</h3>
<p>
<?php foreach($turk_dizi as $turk){
echo $turk['dizi_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/diziliste5.jpg">
</div>
<div class="itemText">
<h3>FİLMLOVERS OKURLARINA GÖRE GELMİŞ GEÇMİŞ EN İYİ YABANCI DİZİLER</h3>
<p>
<?php foreach($filmlovers_okur as $filmlovers){
echo $filmlovers['dizi_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/diziliste6.jpg">
</div>
<div class="itemText">
<h3>GERÇEK HİKAYELERDEN UYARLANAN ÇARPICI DİZİLER</h3>
<p>
<?php foreach($carpici_dizi as $carpici){
echo $carpici['dizi_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
include 'footer.php';
?>