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