<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="jquery-1.11.2.min.js"></script>
</head>
<body>
<table ).text(data);
}
});
}
</script>
</html>
总页数:
<?php
include("DBDA.php");
$db = new DBDA();
$sql ="select count(*) from Info";
$sj = $db->StrQuery($sql);
$list = $_POST["list"];
$zys = 0;
if($sj%$list==0){
$zys = $sj/$list;
}else{
$zys = floor($sj/$list) +1;
}
echo $zys;
分页信息:
<?php
include("DBDA.php");
$db = new DBDA();
include("page.class.php");
$sql = "select count(*) from Nation";
$zs = $db->StrQuery($sql);
$page = new Page($zs,2);
$sqlsj = "select * from Info ".$page->limit;
//echo $sqlsj;
echo $db->JsonQuery($sqlsj);