-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome2.php
26 lines (23 loc) · 955 Bytes
/
home2.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
<?php
require_once('frame_header.php');
require_once('sqlconnection.php');
//below are SQL queries
$query_recentrack="SELECT t.trackname, ar.artistitle, t.trackid
FROM ((user u natural join likes l ) natural join track t) natural join albumcontent ac natural join album a natural join artist ar
WHERE u.username='gtong900'
GROUP BY a.albumreleasedate DESC
LIMIT 10";
$query_recentlist="SELECT p.pid, p.ptitle, p.pdate, p.powner
FROM follows f join playlist p on f.username=p.powner
WHERE f.follower='gtong900' AND p.public != 0
GROUP BY p.powner, p.pdate DESC
LIMIT 10;";
$query_recentplay="SELECT t.trackname, a.artistitle, t.trackid
FROM play p natural join track t natural join artist a
WHERE p.username='gtong900'
ORDER BY p.playtime DESC
LIMIT 60;";
include 'tiletest.php';
include 'tiletest.php';
require_once('frame_footer.php');
?>