自己看吧! 》》 if($mysql_link=mysql_connect($mysql_host,$mysql_user,$mysql_password)){ mysql_select_db($mysql_db_name); $mysql_querystr="UPDATE songs SET hits=hits+1 WHERE disc_id={$arg}"; mysql_query($mysql_querystr) or die(mysql_error()); header ("Cache-Control: no-cache, must-revalidate"); header("Content-type:audio/x-mpegurl"); $mysql_querystr="SELECT url FROM songs WHERE disc_id={$arg}"; $Result=mysql_query($mysql_querystr,$mysql_link) or die(mysql_error()); while($row=mysql_fetch_object($Result)){ print $row->url."\n";
very good!
能不能给点程序看看?
email:[email protected]
》》
if($mysql_link=mysql_connect($mysql_host,$mysql_user,$mysql_password)){
mysql_select_db($mysql_db_name);
$mysql_querystr="UPDATE songs SET hits=hits+1 WHERE disc_id={$arg}";
mysql_query($mysql_querystr) or die(mysql_error());
header ("Cache-Control: no-cache, must-revalidate");
header("Content-type:audio/x-mpegurl");
$mysql_querystr="SELECT url FROM songs WHERE disc_id={$arg}";
$Result=mysql_query($mysql_querystr,$mysql_link) or die(mysql_error());
while($row=mysql_fetch_object($Result)){
print $row->url."\n";
}
mysql_close();
}