最新下载
热门教程
- 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; |
|||||
相关文章
- 96345如何助你快速找到钟点工 03-29
- 我的常德app如何交学费 03-29
- 如何登录网易163免费邮箱 03-29
- 腾讯会议直达入口地址在哪 03-29
- 小宇宙app如何标记喜欢的单集 03-29
- 如何查看12306已完成订单详情 03-29