Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'get.class.php';
- Class Main Extends Get
- {
- public $limit = 15;
- public $sayfa = 1;
- private $pagination;
- private $gun;
- public function __construct($gerekli = 0)
- {
- if($gerekli != 0)
- {
- require_once("pagination.class.php");
- $this->pagination = new Pagination();
- }
- }
- public function getGun()
- {
- $limit1 = $this->limit * ($this->sayfa - 1);
- $limit2 = $limit1 + $this->limit;
- parent::getSql("SELECT * FROM gunler ORDER BY g_id ASC LIMIT " . $limit1 . "," . $limit2);
- //$this->gun = parent::returnCount(); // Gün sayısı for countGun()
- return parent::getData();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement