Home >php教程 >php手册 >php 分页1

php 分页1

WBOY
WBOYOriginal
2016-06-13 10:48:031301browse

/**
 * 用户列表
 * kcj
 * 2011/8/20
 * */ 
include "../conn/conn.php"; 
$sql="select * from user"; 
$rst=mysql_query($sql); 
$totalnum=mysql_num_rows($rst); 
$pagesize=2; 
$page=$_GET['page']; 
if($page==''){ 
$page=1; 

$pagecount=ceil($totalnum/$pagesize); 
$bingage=($page-1)*$pagesize; 
?> 
 

 
 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn