PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Said Índer ALBAYRAK   Pagination Sayfalama Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example class using
Class: Pagination Sayfalama Class
Show links to browse paginated listings
Author: By
Last change:
Date: 12 years ago
Size: 591 bytes


Class file image Download
//including class file

//calling class
$pagination = new Sayfalama;

$sayfalama->Toplam = 20; //total content
$sayfalama->Kacar = 2; //content limit per page
$sayfalama->Sayfa = 10; //now looking page in URL for ex: $_GET['page']
$sayfalama->Sql = "SELECT * FROM users"; //your sql run code LIKE or others but not LIMIT code in here
$sayfalar=$sayfalama->SayfaListesi(); //your page listing in HTML

$sec = mysql_query($sayfalama->Veriler()); // run sql
while($v=mysql_fetch_assoc($sec)) { // do while
echo $v['name'];