Code: Select all
function eb_album_title($id) {
$sql="SELECT album_title FROM eb_albums WHERE album_id=".$id;
$query=mysql_query($sql);
return mysql_result($query,0);
}
function eb_albums() {
global $lang;
$albums=eb_albums_array();
if(count($albums)>0) {
$output="\t\t<ul id=\"albums\">\r\n";
foreach($albums as $album) $output.="\t\t\t<P>Category $album[0]<P><a href=\"photos.php?album=".$album[0]."\"><img src=\"photos/category/".$album[0].".jpg\" alt=\"".$album[1]."\" /></a><P>\r\n";
$output.="\t\t</ul>\r\n";
}
else $output="";
return $output;
}The category name should show up right after where it says Category, right before $album[0] in the eb_albums() function. Could someone point me in the right direction, please!!!???
Thanks,
Scott