Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (36 sloc) 0.885 kb
Report Name: 500 Most Played Songs
Description: Shows a list of your songs in order of "most listened to".
Category: Song
Report URL:
Version: 1.0
Author: Alex King
Author URL:
$title = '500 Most Played Songs';
$result = mysql_query("
SELECT AS artist_name
, AS album_name
, as song_name
, s.play_count as play_count
FROM `".$database_table_prefix."song` s
JOIN `".$database_table_prefix."artist` a
ON s.artist =
JOIN `".$database_table_prefix."album` b
ON s.album =
ORDER BY play_count DESC
") or die(mysql_error());
$grid = new grid;
$grid->columns = array(
'Song' => 'song_name'
,'Artist' => 'artist_name'
,'Album' => 'album_name'
,'Plays' => 'play_count'
while ($data = mysql_fetch_object($result)) {
$grid->items[] = $data;
Jump to Line
Something went wrong with that request. Please try again.