最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php oracle数据库实现分页
时间:2022-06-24 18:59:30 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 | ||||
|
include "/maya/inc/dbconn.php"; $sql="select max(rownum) from xqhtest where id $stmt=ociparse($gConn,$sql); ociexecute($stmt); ocifetch($stmt); $rowcount=ociresult($stmt,1); ocifreestatement($stmt); echo("共有".$rowcount."条记录 n"); $recordperpage=15; //每页显示多少条记录 $pages=ceil($rowcount/$recordperpage); //总页数 echo("共有".$pages."页 n"); ?>
";
$nextoffset=$recordperpage*$currentpage+1; |
|||||
相关文章
- ASP.NetCoreM5C基础系列之中间件 09-17
- ASP.NetCoreM5C基础系列之服务注册和管道 09-17
- ASP.Net Core M5C基础系列之获取配置信息 09-17
- WPF框架Prism中导航Navigation用法介绍 09-17
- WPF框架Prism中5iewModelLocator用法介绍 09-17
- WPF框架Prism中5iewInjection用法介绍 09-16