We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit f67520c3 authored by mattl's avatar mattl

adding support to drill down

parent a34f01ae
......@@ -33,7 +33,25 @@ require_once('database.php');
<table>
<tr><th>User</th><th>Artist</th><th>Track</th><th>Time</th></tr>
<?php
$req_user = $_GET["u"];
$req_artist = $_GET["a"];
$req_track = $_GET["t"];
if ($req_user) {
} elseif ($req_artist) {
} elseif ($req_track) {
} elseif (!$res) {
$res = $mdb2->query("SELECT username, artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 10");
}
if(PEAR::isError($res)) {
die($res->getMessage());
}
......@@ -94,6 +112,7 @@ require_once('database.php');
alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
</p>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment