2017 © Pedro Peláez
 

library cpaging

Classes for Paging

image

phpe/cpaging

Classes for Paging

  • Friday, February 27, 2015
  • by phphille
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CPaging

A class for implementing paging, (*1)

About

A very light and simple class that implement paging with mySql., (*2)

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']).", (*3)

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

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

Scrutinizer Code Quality Code Coverage Build Status, (*6)

The Versions

27/02 2015

dev-master

9999999-dev

Classes for Paging

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

paging

16/02 2015

v1.0

1.0.0.0

Classes for Paging

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

paging