时间:2021-07-01 10:21:17 帮助过:19人阅读
include "../include/song.inc.php";
$key = $_GET['u'];
if($_GET["page"]){
$page=$_GET["page"];#获取要显示的页码
}else{
$page=1;#没有参数传入时,显示第一页
}
$col=20;#每页显示记录条数
$p=($page-1)*$col;
$runSql = mysql_query("select * from cmsdj_song where uid = '$key' order by id desc limit ".$p.",".$col."");
while($row = mysql_fetch_array($runSql))
{
//下面这些是调用值
$sid=$row['id'];
$suid=$row['uid'];
$supip=$row['upip'];
$name=$row['name'];
$sname=substr($name,0,30);
$sfile=$row['file'];
$surl=$row['url'];
$swjdx=$row['wjdx'];
$stime=date('Y-m-d H:i:s',$row['addtime']);
//$b64file=base64_encode($surl);
?>
echo $sid;?> | '> echo $sname;?> | '> echo $sfile;?> | '> echo $surl;?> | echo $swjdx;?> | echo $supip;?> | echo $stime;?> | '> |
$u = $_GET['u'];
$starttime = strtotime($u.'000000');
$endtime = strtotime($u.'235959');
$runSql = mysql_query("select * from cmsdj_song where addtime > '$starttime' and addtime<'$endtime' order by id desc limit ".$p.",".$col."");