|
 |
|
ดูโค๊ดให้ครับว่าทําไม ที่เล่นเพลงมัน ออกแค่อันแรกอันดียวครับ |
|
 |
|
|
 |
 |
|
ใส่นามสกุลไฟล์ ไปยังครับ
Code (PHP)
$result["music"]
หรือ
$result['music']
หรือ
$result['music'].".mp3";
หรือ ดา ดา ดา ดา....
และระวัง ' ชนกัน " "
โอไม่เห็นโครงสร้าง table 55+++
|
 |
 |
 |
 |
Date :
2011-01-21 16:10:23 |
By :
peterxp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมใช้ css แทนครับ ชื่ออย่างอื่นขึ้นหมดแต่ ที่เพลงไม่ขึ้นอย่างเดี่ยว
|
 |
 |
 |
 |
Date :
2011-01-21 16:16:42 |
By :
kenghockey |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่ใช่ table แบบนั้นครับ
หมายถึง table ใน db
|
 |
 |
 |
 |
Date :
2011-01-21 16:19:09 |
By :
peterxp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองแล้วยังไงทําก็ไม่ได้ flash button mp3 ผมใช้ของ standardalone
|
 |
 |
 |
 |
Date :
2011-01-21 16:20:20 |
By :
kenghockey |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เหมือนถามคำนึงตอบคนละคำถามเห่อๆ
ใน table musicupdate มี ฟิว อะไรบ้างครับ
|
 |
 |
 |
 |
Date :
2011-01-21 16:29:02 |
By :
peterxp |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ่อ นี้คือ ฟิลครับ ผมดึงจากฟิลมาเลย ฟิล music ครับนี้
<?php echo $result["music"]; ?>
แต่ปัญหาคือเป็นที่โปรแกรมนะผมว่าเพราะถ้า
<p id="audioplayer_1">Alternative content</p> ใส่มันจะขึ้นที่เล่นมาอันเดียวแต่ถ้าไม่ใส่ก็ไม่ขึ้น
|
 |
 |
 |
 |
Date :
2011-01-21 16:36:21 |
By :
kenghockey |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="testcss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="audio-player/audio-player.js"></script>
<script type="text/javascript">
AudioPlayer.setup("audio-player/player.swf", {
width: 290
});
</script>
</head>
<body>
<?php
include('connect/connect.php');
$str = "SELECT * FROM musicupdate ORDER BY ID DESC LIMIT 0,10";
$query = mysql_query($str) or die ("Error Query [".$strSQL."]");
$i = 1;
?>
<?
while($result = mysql_fetch_array($query))
{
?>
<div id="container">
<div id="number"><?php echo $i++; ?></div>
<div id="contant">
<div id="image"><img src="upload/imagemusicupdate/<?php echo $result["image"]; ?>"></div>
<div id="music"><? echo $result["Album"];?><br /><? echo $result["name"];?><br /><? echo $result["listtypename"];?><br />
<p id="audioplayer_<?=$i?>">Alternative content</p>
<script type="text/javascript">
AudioPlayer.embed("audioplayer_<?=$i?>", {soundFile: "upload/musicupdate/<?php echo $result["music"]; ?>"});
</script></div>
</div>
</div>
<?
}
?>
</body>
</html>
เพิ่ม <?=$i?> เพื่อให้ id ไม่ซ้ำ จะได้ไม่โชว์อันเดียวไงค่ะ
|
 |
 |
 |
 |
Date :
2011-02-07 20:00:15 |
By :
s_ting |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|