Advertisement
Derpost

Untitled

Jan 19th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. require_once 'get.class.php';
  3.  
  4. Class Main Extends Get
  5. {
  6. public $limit = 15;
  7. public $sayfa = 1;
  8. private $pagination;
  9.  
  10. private $gun;
  11.  
  12. public function __construct($gerekli = 0)
  13. {
  14. if($gerekli != 0)
  15. {
  16. require_once("pagination.class.php");
  17. $this->pagination = new Pagination();
  18. }
  19. }
  20.  
  21. public function getGun()
  22. {
  23. $limit1 = $this->limit * ($this->sayfa - 1);
  24. $limit2 = $limit1 + $this->limit;
  25. parent::getSql("SELECT * FROM gunler ORDER BY g_id ASC LIMIT " . $limit1 . "," . $limit2);
  26. //$this->gun = parent::returnCount(); // Gün sayısı for countGun()
  27. return parent::getData();
  28. }
  29.  
  30.  
  31.  
  32. }
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement