<!-- Set the move interval in milliseconds and the direction: -1 bottom -> top, 1 top -> bottom -->
<ticker interval="50" direction="-1" imgBorderWidth="2" imgBorderColor="0xBCC3D5">
<?
   include ("/home2/thegaunt/www/common/connectdb.php");
   function band_name($t_id) {
   global $link;
   $sql = "SELECT band FROM bands WHERE bid = '$t_id'" ;
   $sql_result = mysql_query ($sql, $link ) or die ('request "Could not execute SQL query"');
   $row = mysql_fetch_row( $sql_result );
   return $row[0];
 };
	$result = mysql_query( "SELECT * FROM albums ORDER BY release_date DESC LIMIT 0, 30 " );
	while ( $row = mysql_fetch_object( $result ) )
	{
	  $bandname = band_name($row->bid);
?>

	<news img="http://www.thegauntlet.com/pix/<?php echo "$row->cover"; ?>" imgWidth="60" imgHeight="60" headline="<? echo $bandname ?> - <?php echo "$row->title"; ?>" link="http://www.thegauntlet.com/albuminfo/<?php echo "$row->bid/$row->aid"; ?>/band.html" target="_self" />
<?php } ?>

</ticker>
