www.gusucode.com > 仿51.com的php源码 1.1 > Music/GetMusicInfo.php

    <?php
 header   ("Cache-Control:   no-cache,   must-revalidate");     
 header   ("Pragma:   no-cache");   
?>
<?php
include("../User/CheckLogined.php");
include("../include/dbclass.php");
$dbc=new DbConn();
$uid=$_COOKIE["uid"];
$id=$_GET["id"];
$sql="select id,Music_url,music_title,author,memo,User_Account from music where id='$id'";
$row=$dbc->getRs($sql);
if ($row==null)
{
echo "false";
exit();
}
{
$str=$row["id"]."\|".iconv('gbk', 'utf-8',$row["music_title"])."\|".iconv('gbk', 'utf-8',$row["author"])."\|".$row["User_Account"]."\|".$row["Music_url"]."\|".iconv('gbk', 'utf-8',$row["memo"]);
echo $str;
exit();
}
?>