-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmuzik.php
173 lines (142 loc) · 6.17 KB
/
muzik.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php
include 'header.php';
include 'baglan.php';
$query = "select * from sarkilar;";
$result = $conn->query($query);
$turkce_pop = array();
$rap_sarki = array();
$rock_sarki = array();
$ergenlik = array();
$hit2020 = array();
$huzur_sarki = array();
while($row = $result->fetch_assoc())
{
if($row['sarki_kategori'] == "turkce_pop"){
array_push($turkce_pop, $row);
}
if($row['sarki_kategori'] == "rap_sarki"){
array_push($rap_sarki, $row);
}
if($row['sarki_kategori'] == "rock_sarki"){
array_push($rock_sarki, $row);
}
if($row['sarki_kategori'] == "ergenlik"){
array_push($ergenlik, $row);
}
if($row['sarki_kategori'] == "hit2020"){
array_push($hit2020, $row);
}
if($row['sarki_kategori'] == "huzur_sarki"){
array_push($huzur_sarki, $row);
}
}
?>
<section id="features" class="sectionArea">
<div class="featuresTop">
<h2 class="sectionHeader">MÜZİK</h2>
<p>Her şarkıda hayatımızdan, içinde olduğumuz zamanlardan bir şeyler vardır aslında. </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/müzik1.jpeg">
</div>
<div class="itemText">
<h3>90'lar TÜRKÇE POP LİSTESİ</h3>
<p>
<?php foreach($turkce_pop as $turkce){
echo $turkce['sarki_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/müzik2.jpg">
</div>
<div class="itemText">
<h3>EN POPÜLER RAP ŞARKI LİSTESİ</h3>
<p>
<?php foreach($rap_sarki as $rap){
echo $rap['sarki_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/müzik3.jpeg">
</div>
<div class="itemText">
<h3>70'li YILLARA DAMGA VURMUŞ ROCK ŞARKILAR</h3>
<p>
<?php foreach($rock_sarki as $rock){
echo $rock['sarki_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/müzik4.jpeg">
</div>
<div class="itemText">
<h3>BİR NESLİN ERGENLİK DÖNEMİNE DAMGA VURAN ŞARKILAR</h3>
<p>
<?php foreach($ergenlik as $ergen){
echo $ergen['sarki_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/müzik5.jpeg">
</div>
<div class="itemText">
<h3>2020'de DİNLENEN HİT ŞARKILAR</h3>
<p>
<?php foreach($hit2020 as $hit){
echo $hit['sarki_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
<div class="col3">
<div class="item">
<div class="zoom">
<img src="https://calasumyserverbucket.s3.amazonaws.com/odev/müzik6.jpg">
</div>
<div class="itemText">
<h3>YOGA VE MEDİTASYONUNUZA HUZUR KATACAK ŞARKILAR</h3>
<p>
<?php foreach($huzur_sarki as $huzur){
echo $huzur['sarki_adi'] . "<br>";
} ?>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<?php
include 'footer.php';
?>