phpe/cpaging 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpe/cpaging

最新稳定版本:v1.0

Composer 安装命令:

composer require phpe/cpaging

包简介

Classes for Paging

关键字:

README 文档

README

A class for implementing paging

About

A very light and simple class that implement paging with mySql.

PHP 5 >= 5.3.0

Introduction

First instantiate a paging object like $paginering = new \phpe\paginering\CPaginering(); Count ever item in your SQL table eg, "SELECT * FROM VFullViewMovies". Then wirte your SQL query, eg "SELECT * FROM VFullViewMovies WHERE genre = action LIMIT ".$_GET['hits']." OFFSET ".(($_GET['page'] - 1) * $_GET['hits'])."

Then set $paginering->setTotalRows($_GET['hits'], $_GET['page'], count($AllTableItems));

You will then get the html code with: $paginering->GetPageNav(); $paginering->GetNbrOfHitsPerPage();

Scrutinizer Code Quality Code Coverage Build Status

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固