Skip to content

Commit

Permalink
Revert "Add Pagination example (#527)"
Browse files Browse the repository at this point in the history
This reverts commit 157619d.
  • Loading branch information
Markus Kalkbrenner committed Dec 31, 2017
1 parent 157619d commit 3d4baac
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions examples/1.2-basic-select.php
Expand Up @@ -9,15 +9,6 @@
// get a select query instance
$query = $client->createQuery($client::QUERY_SELECT);

// Pagination example
$resulsPerPage = 15;
$currentPage = 1;

// Set the number of results to return
$query->setRows($resultsPerPage);
// Set the 0-based result to start from, taking into account pagination
$query->setStart(($currentPage - 1) * $resultsPerPage);

// this executes the query and returns the result
$resultset = $client->execute($query);

Expand Down

2 comments on commit 3d4baac

@thePanz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkalkbrenner why this example was removed?

@mkalkbrenner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By accident :-(

Please sign in to comment.