From 4e9823cd1064cc876b449752b933c89c367d84c6 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 4 Jan 2006 08:11:01 +0000 Subject: fixed mysql5 crap, thx WarrenG cleaned up some of the show_songs code and stuff that calls it, did a little work on playlists --- lib/class/playlist.class.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/class/playlist.class.php') diff --git a/lib/class/playlist.class.php b/lib/class/playlist.class.php index a3455d7f..0ab165cd 100644 --- a/lib/class/playlist.class.php +++ b/lib/class/playlist.class.php @@ -76,8 +76,12 @@ class Playlist { */ function get_track($id) { + $sql = "SELECT track FROM playlist_data WHERE id='" . sql_escape($id) . "'"; + $db_results = mysql_query($sql, dbh()); + $result = mysql_fetch_assoc($db_results); + return $result['track']; } // get_track -- cgit