-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (24 loc) · 1.21 KB
/
Copy pathindex.php
File metadata and controls
31 lines (24 loc) · 1.21 KB
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
<?php
include("includes/includedFiles.php");
?>
<script>
$(".username span").text(userLoggedIn);
</script>
<h2 class="username">Hi <span></span></h2>
<h1 class="pageHeadingBig">Some Music You May Like</h1>
<div class="gridViewContainer">
<img src="" alt="">
<?php
$albumQuery = mysqli_query($con,"SELECT * FROM album ORDER BY RAND() LIMIT 12");
while($row = mysqli_fetch_assoc($albumQuery)):
echo "<div class='gridViewItem'>
<span role='link' tabindex = '0' onclick=\"openPage('album_page.php?id=" . $row['id'] . "')\" >
<img src='" . ART_PATH.$row['artworkPath'] ."' alt='artwork'>
<div class='gridViewInfo'>"
.$row['title'].
"</div>
</span>
</div>";
endwhile;
?>
</div>