Home > Article > Backend Development > PHP paging, select all, inverse selection, unselect all, batch delete_PHP tutorial
/**
* User management
* 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);
?>