Skip to content

Instantly share code, notes, and snippets.

@s4l1h
Created June 26, 2010 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s4l1h/454154 to your computer and use it in GitHub Desktop.
Save s4l1h/454154 to your computer and use it in GitHub Desktop.
<?php
$sayfa=new Sayfala();
$sayfa->link = ' <a href="index.php?sayfa=#page_num#" title="#name#">#name#</a> ';
$sayfa->toplam = 300; // Toplam Veri Sayısı
$sayfa->limit = 10; // Sayfa Başına Gösterilecek Veri
$sayfa->slimit = 3; // Sayfalama Limiti
$sayfa->sayfa = intval($_GET['sayfa']) ? $_GET['sayfa'] : '1';// Geçerli Sayfa
$sayfa->i_text = 'İleri';
$sayfa->g_text = 'Geri';
$sayfa->run (); // Oluştur
print_r($sayfa->sonuc);
// $sayfa->sonuc size geri sayfalar ileri adında 3 tane index verecek.
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment