Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2011-08-05 14:05
Size: 591 bytes
 

Contents

Class file image Download
<?php
//including class file
include('sayfalama.class.php');

//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'];
}

?>