mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
31 lines
541 B
PHP
31 lines
541 B
PHP
<?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
|
|
|
|
|
|
|
|
|
|
|
|
?>
|