summaryrefslogtreecommitdiffstats
path: root/lib/album.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/album.lib.php')
-rw-r--r--lib/album.lib.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/album.lib.php b/lib/album.lib.php
new file mode 100644
index 00000000..7d518ff8
--- /dev/null
+++ b/lib/album.lib.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
+
+
+
+
+
+?>