summaryrefslogtreecommitdiffstats
path: root/lib/album.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-09 16:34:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-09 16:34:40 +0000
commitbcad40a05ab2dc2a341a3227e30b96668bce4500 (patch)
tree6fca27588d53a1b24705bd2834e9e643bb729bd1 /lib/album.php
downloadampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.tar.gz
ampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.tar.bz2
ampache-bcad40a05ab2dc2a341a3227e30b96668bce4500.zip
New Import
Diffstat (limited to 'lib/album.php')
-rw-r--r--lib/album.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/album.php b/lib/album.php
new file mode 100644
index 00000000..7d518ff8
--- /dev/null
+++ b/lib/album.php
@@ -0,0 +1,31 @@
+<?php
+/*
+
+ This library handles album related functions.... wooo!
+ //FIXME: Remove this in favor of /modules/class/album
+*/
+
+/*!
+ @function get_albums
+ @discussion pass a sql statement, and it gets full album info and returns
+ an array of the goods.. can be set to format them as well
+*/
+function get_albums($sql, $action=0) {
+
+ $db_results = mysql_query($sql, dbh());
+ while ($r = mysql_fetch_array($db_results)) {
+ $album = new Album($r[0]);
+ $album->format_album();
+ $albums[] = $album;
+ }
+
+ return $albums;
+
+
+} // get_albums
+
+
+
+
+
+?>