php 分页
时间:2005-10-31 来源:ydz5
第一页|上一页|';
}
if( ($page == $page_count) || ($page_count == 0) ){
$page_string .= '下一页|尾页';
}
else{
$page_string .= '下一页|尾页';
}
echo $page_string." 总共".$page_count."页 当前第".$page."页
";
// 获取数据,以二维数组格式返回结果
//if( $amount ){
$m=($page-1)*$page_size + 1;
$sql = "select * from xxx where agent_user='xxx order by xxx desc limit $m,$page_size";//. ($page-1)*$page_size .", $page_size";
echo $sql."
";
//exit();
$result = mysql_query($sql);
while ( $row = mysql_fetch_row($result) ){
//$rowset[] = $row;
echo $row[0]."
";
}
//}else{
$rowset = array();
//}
?>
相关阅读 更多 +