forked from enyu0226/Spotify-Clone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsongs.php
More file actions
32 lines (20 loc) · 719 Bytes
/
songs.php
File metadata and controls
32 lines (20 loc) · 719 Bytes
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
<?php
include("includes/includedFiles.php");
?>
<h1 class="pageHeadingBig">Choose Song</h1>
<div class="gridViewContainer">
<?php
// Implement genre search
$albumSongsQuery = mysqli_query($con, "SELECT `Songs`.`id`,`Songs`.`title`, `albums`.`artworkPath` FROM `albums` INNER JOIN `Songs` ON `Songs`.`album` = `albums`.`id` ORDER BY `Songs`.`title` ASC");
while($row = mysqli_fetch_array($albumSongsQuery)) {
echo "<div class='gridViewItem'>
<span role='link' tabindex='0' onclick='openPage(\"album.php?id=" . $row['id'] . "\")'>
<img src='" . $row['artworkPath'] . "'>
<div class='gridViewInfo'>"
. $row['title'] .
"</div>
</span>
</div>";
}
?>
</div>