用講師的方法先封裝了mysql函數(shù)require_once?'../include.php';
checkLogined();
$page='';
$sql="select?*?from?check";
$totalRows=getResultNum($sql);
$pageSize=5;
$totalPage=ceil($totalRows/$pageSize);
if($page<1||$page==null||!is_numeric($page))$page=1;
if($page>=$totalPage)$page=$totalPage;
$offset=($page-1)*$pageSize;
$sql="select?*?from?check?order?by?id?asc?limit?{$offset},{$pageSize}";
$rows=fetchAll($sql);
var_dump($rows);
//?if(!$rows){
//?alertMes("sorry,沒有用戶需要審核!","addUser.php");
//?exit;
//?}同一個(gè)數(shù)據(jù)庫內(nèi)的其他表正常,能讀取,這個(gè)表卻始終無法讀??!有可能是哪些地方出錯(cuò)了?
添加回答
舉報(bào)
0/150
提交
取消