一、代码
conn.php:
PConnect('localhost','root','root','db_database14');
$conn -> execute('set names gb2312');
?>list.php:
分页技术
| PageExecute($sql,$num,$c_page); //执行pageExecute函数 if(false != $rst){ if(!$rst -> AtfirstPage()){ //如果当前页不是首页 ?> "> 首页 AbsolutePage() - 1); ?>"> 上一页 AtlastPage()){ //如果当前页不是尾页 ?> AbsolutePage() + 1); ?>"> 下一页 LastPageNo());?>"> 尾页 |
| 当前是第 AbsolutePage(); ?>页/一共是 LastPageNo(); ?>页 |
二、运行结果
