header("Content-Type: text/html; charset=gb2312");
include("conn.php");
$pageSize = 10;
$page = isset($_GET['p']) ? intval($_GET['p']) : 1 ;
$page = max(1, $page);
$pageIndex = $pageSize * ($page-1);
$sql="select count(*) as num from uu";
$pageQuery = mysql_query($sql);
$numRs = mysql_fetch_array($query);
$totalNum = $numRs['num'];
$sql="select * from uu order by id desc limit {$pageIndex}, {$pageSize}";
$query=mysql_query($sql);
?>
ID |
用户名 |
地 址 |
姓 名 |
---|
$i = 0;
while($row = mysql_fetch_array($query)){
$color = $i % 2 ? '#add3ef' : '#eff3ff';
?>
">
=$row['id'];?> |
=$row['u_user'];?> |
=$row['u_add'];?> |
=$row['u_name'];?> |
}
?>
$totalPages = ceil(1.0 * $totalNum / $pageSize);
for($i = 1; $i <= $totalPages; $i++) {
?>
}
?>