<?	
	require_once('link.php');
	mysql_select_db($database,$connect);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>台灣樂團資料庫-音樂試聽</title>
<style>
<!--
.style1 {font-size: 13px; color: #FFFFFF; }
BODY {
	SCROLLBAR-FACE-COLOR: #D4D0C8;
	SCROLLBAR-HIGHLIGHT-COLOR: #D4D0C8;
	SCROLLBAR-SHADOW-COLOR: #999999;
	SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
	SCROLLBAR-ARROW-COLOR:  #000000;
	SCROLLBAR-TRACK-COLOR: #E3E3E3;
	SCROLLBAR-DARKSHADOW-COLOR: #666666;
	background-color: #000000;
	background-image: url(img/bg5.png);
	background-attachment: fixed;
}
a:link {
	color: white;
	text-decoration: none;
}
a:visited {
	color: white;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
body,td,th {
	color: #FFFFFF;
}
.style2 {
	font-size: 16px;
	font-weight: bold;
}
--></style>

</head>

<body leftmargin=0 topmargin=0 bgproperties="fixed" rightmargin=0  bottommargin=0 marginwidth=0 marginheight=0>

<div align = "right">
</div>
<center>
  <p class="style2">&nbsp;</p>
  <p class="style2"><a href="upload.php">音樂上傳</a> </p>
  <table width="417" cellpadding="1" cellspacing="0" align="center" class="style1">	
<?		
	mysql_select_db($database,$connect);
	$query = "SELECT * FROM `Share`";
	mysql_query('SET NAMES utf8');

	$result = mysql_query($query,$connect);
	$num = mysql_num_rows($result);
	for($i = 1;$i<=$num;$i++)
	{
		$row = mysql_fetch_object($result);
?>
	<tr>
	  <td width="157"  bgcolor="#3E2B31"><div align = "center"><? echo $row->band; ?>-<? echo $row->song;?></div></td><td width="1"></td>
	  <td width="252" bgcolor="#926A59"><embed src="http://140.117.189.112/WEB/BAND2.0/<? echo $row->data;?>" loop="0" autostart="0" volume="100" width="247" height="25"></embed></td>
	</tr><td colspan = "3" height = "1"></td></tr>
	


<? };?>
</table>
</center>
</body>
</html>
