SHARE
TWEET

Untitled

a guest Oct 10th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         $page = $page - 1;
  3.         if ($page < 0) {
  4.             $page = 0;
  5.         }
  6.         $con = Propel::getConnection(RelacjePeer::DATABASE_NAME, Propel::CONNECTION_READ);
  7.         $criteria = new Criteria(RelacjePeer::DATABASE_NAME);
  8.         $criteria->setLimit($limit);
  9.         $criteria->setOffset($page*$limit);
  10.         $criteria->addDescendingOrderByColumn(RelacjePeer::ID);
  11.         return RelacjePeer::doSelect($criteria, $con);
  12.  
  13. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top