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

Commit 3077c8bd authored by P. J. McDermott's avatar P. J. McDermott

Clean up code in gnukebox/display.php.

parent a3fb0837
......@@ -40,22 +40,19 @@ require_once('temp-utils.php');
try {
$res = $adodb->CacheGetAll(60, "SELECT artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 25");
$res = $adodb->CacheGetAll(60, 'SELECT artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 25');
}
catch (exception $e)
{
} catch (Exception $e) {
die($e->getMessage());
}
echo "<ul>\n";
foreach($res as &$row){
foreach ($res as &$row){
echo "<li>" . $row['artist'] . "&mdash;" . $row['track'] . "</li>\n";
}
}
?>
</ul>
......
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