Rumah > Artikel > pembangunan bahagian belakang > php 分页、全选、反选、全不选、批量删除_PHP教程
/**
* 用户管理
* 2011/8/22
* kcj
*
* */
include "isLogin.php";
include "../conn/conn.php";
$sql="select * from user";
$rst=mysql_query($sql);
$totalnum=mysql_num_rows($rst);
$pagesize=5;
$page=$_GET['page'];
if($page==''){
$page=1;
}
$begin=($page-1)*$pagesize;
$pagecount=ceil($totalnum/$pagesize);
?>